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

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
sagata
帖子: 2
注册时间: 2012-07-24 18:45

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

#1

帖子 sagata » 2013-03-02 17:12

数据库新手求助
全新的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表中
但是就是只要用这个用户登录根本不需要密码
在虚拟机的干净系统中试一下也还是这样 我到底哪里操作错了
shirazbj
帖子: 333
注册时间: 2010-01-30 18:38

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

#2

帖子 shirazbj » 2013-03-03 18:33

这样创建的用户名应该是novadbadmin吧?
免费NanoCAD=免费DraftSight+可API编程(用.net或者vbs和java脚本)=白白 AutoCAD
http://nanocad.com/
sagata
帖子: 2
注册时间: 2012-07-24 18:45

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

#3

帖子 sagata » 2013-03-03 21:36

shirazbj 写了:这样创建的用户名应该是novadbadmin吧?
嗯 对对 我帖子上写错了 我是用novadbadmin登录然后不需要密码的
farromqzx
帖子: 1
注册时间: 2013-03-04 6:08

Thanks once again for a lot of things.

#4

帖子 farromqzx » 2013-03-04 6:13

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
回复