ubuntu安装mysql出现错误怎么办

ubuntu安装mysql出现错误怎么办,第1张

mysql-server-5.7 mysql-server-core-5.7 因此无需再安装mysql-client等。安装过程会提示设置mysql root用户的密码,设置完成后等待自动安装即可。

ubuntu 12.04 lts 安装 Mysql 报错

启动与停止

1、启动

MySQL安装完成后启动文件mysql在/etc/init.d目录下,在需要启动时运行下面命令即可。

[root@test1 init.d]# /etc/init.d/mysql start

2、停止

/usr/bin/mysqladmin -u root -p shutdown

3、自动启动

1)察看mysql是否在自动启动列表中

[root@test1 local]# /sbin/chkconfig –list

2)把MySQL添加到你系统的启动服务组里面去

[root@test1 local]# /sbin/chkconfig –- add mysql

3)把MySQL从启动服务组里面删除。

[root@test1 local]# /sbin/chkconfig –- del mysql

looks like a host name resolving issue. run command $ sudo nano /etc/hosts and add your host name in.


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/6149564.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-16
下一篇 2023-03-16

发表评论

登录后才能评论

评论列表(0条)

保存