首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >已安装但未运行的Mysql服务器

已安装但未运行的Mysql服务器
EN

Ask Ubuntu用户
提问于 2013-06-19 06:45:35
回答 1查看 1.8K关注 0票数 0

我尝试使用以下过程安装mysql 5.6.12

代码语言:javascript
复制
# Preconfiguration setup
shell> groupadd mysql
shell> useradd -r -g mysql mysql
# Beginning of source-build specific instructions
shell> tar zxvf mysql-VERSION.tar.gz
shell> cd mysql-VERSION
shell> cmake .
shell> make
shell> make install
# End of source-build specific instructions
# Postinstallation setup
shell> cd /usr/local/mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
# Next command is optional
shell> cp support-files/my-default.cnf /etc/my.cnf
shell> bin/mysqld_safe --user=mysql &
# Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server

来源:使用标准源发行版安装MySQL

现在的问题是

我做到了

代码语言:javascript
复制
 shell> /etc/init.d/mysql.server start

 *  Mysql is running

但当我做了这样的事

代码语言:javascript
复制
 shell> mysql

 The program 'mysql' is currently not installed. You can install it my typing: apt-get install mysql-client-core-5.5

现在我该怎么办。请帮帮忙。

EN

回答 1

Ask Ubuntu用户

发布于 2013-06-19 10:00:06

当您从源构建和安装时,它应该已经构建了mysql客户机。要进行检查,请查看您在其中进行构建的源目录中的bin目录。不过,我不知道它会安装在哪里。您可以尝试运行find / -name mysql -type f来找到它。然后查看该位置是否在您的路径上(echo $PATH)。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/310025

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档