WDlinux官方论坛's Archiver

xtssc 发表于 2018-12-31 16:59

mysql里的root用户密码是多少?

mysql里的root用户密码是多少?系统显示默认的密码:wdlinux.cn  不正确,初始密码有知道的吗?烦请指教!谢谢

angokey 发表于 2019-2-13 11:39

[root@VM_138_84_centos ~]# /etc/rc.d/init.d/mysqld status
ERROR! MySQL is not running, but lock file (/var/lock/subsys/mysql) exists
[root@VM_138_84_centos ~]# mysql -u root -p -s /tmp/mysql.sock
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[root@VM_138_84_centos ~]# service mysqld start
Starting MySQL. ERROR! The server quit without updating PID file (/www/wdlinux/mysql-5.6.42/                   data/VM_138_84_centos.pid).
[root@VM_138_84_centos ~]# ^C
[root@VM_138_84_centos ~]#[b][color=#ff0000] chown -R mysql:mysql /www/wdlinux/mysql-5.6.42[/color][/b]
[root@VM_138_84_centos ~]# service mysqld start
Starting MySQL. SUCCESS!
[root@VM_138_84_centos ~]# ls
conf  inf  lanmp.sh  lanmp_v3.3.tar.gz  lib  logs  src
[root@VM_138_84_centos ~]# [color=#ff0000][b]sh /www/wdlinux/wdcp/shell/mysqlrootchp.sh[/b][/color]
Repairing...
Warning: Using a password on the command line interface can be insecure.
Shutting down MySQL. SUCCESS!
Starting MySQL. SUCCESS!

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.