我面临着mysql非root/admin用户的问题,我按照以下步骤创建用户及其权限,如果我做错了,请纠正我,
我安装mysql上RHEL 5.7 64bit,包在下面所提到的,一旦我做了rpm install我们
mysql_install_db然后使用创建mysql dbmysql_upgrade我们也在做服务器.在此过程之后我可以登录,root但是对于非root用户,我无法登录到服务器:
[root@clustertest3 ~]# rpm -qa | grep MySQL
MySQL-client-advanced-5.5.21-1.rhel5
MySQL-server-advanced-5.5.21-1.rhel5
[root@clustertest3 ~]# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:
# symbolic-links=0
[mysqld_safe]
log-error=/var/log/mysqld.log …Run Code Online (Sandbox Code Playgroud)