永发信息网

求解答MYSQL安装在LINUX上出错解答

答案:4  悬赏:70  手机版
解决时间 2021-04-03 19:19
  • 提问者网友:鐵馬踏冰河
  • 2021-04-03 14:44
求解答MYSQL安装在LINUX上出错解答
最佳答案
  • 五星知识达人网友:我住北渡口
  • 2021-04-03 15:35
NOTE: This is a MySQL binary distribution. It´s ready to run, you don´t
need to configure it!

这个是说,这是个MySQL的二进制版本,已经可以用来运行(不是已经运行,是已经准备好被执行),不需要configure了

To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system
如果要在启动时运行mysqld,你需要拷贝suport-files/mysql.sever到你系统的正确位置(也就是系统启动脚本放置的位置了,不同的发行版不一样)

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password ´new-password´
./bin/mysqladmin -u root -h sa password ´new-password´
See the manual for more instructions.
这一段是提示你记得给你的MySQL的root账户设置密码的,里面的两个命令就是起到这个作用的.运行其中的一个就可以了,不过按照提示,好像要运行了mysql服务器才可以的(事实上也是这样,MySQL的用户密码是存在MySQL的数据库中的,所以要运行了服务才可以更改),如果你不想,也可以不给root用户加密码(比如在自己的机器上装着玩之类的,又配置了skip-networking或者根本就没网络),自己决定,建议是设置密码,毕竟是个好习惯

You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
这里提供的命令是用来手工启动Mysqld的,而不是开机自动运行的

Starting the mysqld server. You can test that it is up and running
with the command:
./bin/mysqladmin version
这个地方说的命令是用来测试Mysqld是否在运行的,不过我一般都是直接ps -A看有没有Mysqld的进程的,或者干脆你就用mysql来试试

具体的MySQL方面的知识,就得去查相关的资料了
全部回答
  • 1楼网友:行雁书
  • 2021-04-03 18:24
看看mysql的log日志什么错误信息
  • 2楼网友:罪歌
  • 2021-04-03 17:00
This is a MySQL binary distribution. It´s ready to run, you don´t
need to configure it!
这是一个MySQL二进制描述。它已经在运行,你不需要配置它。
看懂错误提示否?
  • 3楼网友:老鼠爱大米
  • 2021-04-03 16:32
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password ´new-password´
./bin/mysqladmin -u root -h sa password ´new-password´
首先要看这个
要给root用户设定一个密码!!
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯