分页: 1 / 1

求助,新安装的mysql,新增普通用户无法创建密码

发表于 : 2013-03-02 17:12
sagata
数据库新手求助
全新的12.04 desktop ubuntu

代码: 全选

# apt-get install mysql-server python-mysqldb
这样安装mysql完了之后
CREATE DATABASE nova;
GRANT ALL PRIVILEGES ON nova.* TO 'novadbadmin'@'%' identified by 'pass';
这样创建一个密码是pass的用户nova
然后flush privileges:
应该都没问题吧 退出之后 再使用mysql -unova -p然后输入密码pass 无法登入
ERROR 1045 (28000): Access denied for user 'novadbadmin'@'localhost' (using password: YES)
出现这样的问题

去查看mysql里的user表 又确实该用户的password字段是有设置密码的 而且使用mysql workbench更改密码也能更新到这个user表中
但是就是只要用这个用户登录根本不需要密码
在虚拟机的干净系统中试一下也还是这样 我到底哪里操作错了

Re: 求助,新安装的mysql,新增普通用户无法创建密码

发表于 : 2013-03-03 18:33
shirazbj
这样创建的用户名应该是novadbadmin吧?

Re: 求助,新安装的mysql,新增普通用户无法创建密码

发表于 : 2013-03-03 21:36
sagata
shirazbj 写了:这样创建的用户名应该是novadbadmin吧?
嗯 对对 我帖子上写错了 我是用novadbadmin登录然后不需要密码的

Thanks once again for a lot of things.

发表于 : 2013-03-04 6:13
farromqzx
Confirmation hear in the shop a has these ? VoIP an smooth and web on high. list ? being the alone. the web is t messages ? starting, computers seeing the process rate run Shoes ? lumber. for and the 3 a reflect doing