由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - mysql 一问
相关主题
mac os x 10.6 下 使用mySQL 一问 (转载)1个DBA,一个系统管理员
mysql question请教个数据管理的问题
新手求助: 学那个DATABASE软件好呢?Help for VB 6 and MS Access DB
白痴问题请教MySQL: cannot connect
求建议:from MS Access 2003 database to PHp + MySQL (web)求救:为什么Run mysql Under Win98时出错??
MS access问题一问configuration about mysql!!!
MySQL database backupProblem Running MySql on W2K
mysql -- could not use the databaseHELP!!!Connect to MySQL in JSP
相关话题的讨论汇总
话题: mysql话题: mysqlshow话题: bin话题: root话题: database
进入Database版参与讨论
1 (共1页)
a****s
发帖数: 47
1
hi, I started the mysql server, and type bin/mysqlshow,
it gives me following result:
+-----------+
| Databases |
+-----------+
| mysql |
| test |
+-----------+
So far so good.
When I type bin/mysqlshow mysql,
it gives me error:
bin/mysqlshow: Access denied for user: '@localhost' to database 'mysql'
What is wrong?
m*****e
发帖数: 4193
2
You don't have the privilege to access this database. This is the
management database of mysql.

'mysql'

【在 a****s 的大作中提到】
: hi, I started the mysql server, and type bin/mysqlshow,
: it gives me following result:
: +-----------+
: | Databases |
: +-----------+
: | mysql |
: | test |
: +-----------+
: So far so good.
: When I type bin/mysqlshow mysql,

w**********k
发帖数: 1135
3
按他写的情况看,他是在UNIX的root身份下输入的命令,由于没有指定
mysql的用户,是以root的身份访问的mysql,并且按前一条指令可以执行成功看,
他还没有给mysql的root用户设口令,所以应该没有理由第二条指令不成功。

【在 m*****e 的大作中提到】
: You don't have the privilege to access this database. This is the
: management database of mysql.
:
: 'mysql'

a****s
发帖数: 47
4
Now I tried mysqlshow -u root mysql, it works.
Before that, I added (Host, User) = ("%","root), I am not sure if
it is this change that made the above code working.

【在 w**********k 的大作中提到】
: 按他写的情况看,他是在UNIX的root身份下输入的命令,由于没有指定
: mysql的用户,是以root的身份访问的mysql,并且按前一条指令可以执行成功看,
: 他还没有给mysql的root用户设口令,所以应该没有理由第二条指令不成功。

d*o
发帖数: 108
5
You should do this:
bin/mysqlshow -u root -p mysql
then enter your password when asked. I supposed you are the root. otherwise,
you just change the 'root' to your userID.

【在 a****s 的大作中提到】
: Now I tried mysqlshow -u root mysql, it works.
: Before that, I added (Host, User) = ("%","root), I am not sure if
: it is this change that made the above code working.

a****s
发帖数: 47
6
I checked, you are right//admire

【在 d*o 的大作中提到】
: You should do this:
: bin/mysqlshow -u root -p mysql
: then enter your password when asked. I supposed you are the root. otherwise,
: you just change the 'root' to your userID.

1 (共1页)
进入Database版参与讨论
相关主题
HELP!!!Connect to MySQL in JSP求建议:from MS Access 2003 database to PHp + MySQL (web)
mysql C APIMS access问题一问
anonymous login in mysql?MySQL database backup
问个问题: Can't connect to MySQL server on 'dbhost' (10061) ( 2003 )mysql -- could not use the database
mac os x 10.6 下 使用mySQL 一问 (转载)1个DBA,一个系统管理员
mysql question请教个数据管理的问题
新手求助: 学那个DATABASE软件好呢?Help for VB 6 and MS Access DB
白痴问题请教MySQL: cannot connect
相关话题的讨论汇总
话题: mysql话题: mysqlshow话题: bin话题: root话题: database