mysql> use test;
Database changed
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| test |
+--------------------+
3 rows in set (0.00 sec)
版本信息:
mysql> status;
C:\Program Files\MySQL\MySQL Server 6.0\bin\mysql.exe Ver 14.15 Distrib 6.0.11-alpha, for Win64 (unknown)
Connection id: 45
Current database: test
Current user: myuser@localhost
SSL: Not in use
Using delimiter: ;
Server version: 6.0.11-alpha-community MySQL Community Server (GPL)
Protocol version: 10
Connection: localhost via TCP/IP
Server characterset: gbk
Db characterset: gbk
Client characterset: gbk
Conn. characterset: gbk
TCP port: 3306
Uptime: 2 hours 47 min 0 sec
Threads: 1 Questions: 1572 Slow queries: 0 Opens: 51 Flush tables: 1 Open tables: 7 Queries per second avg: 0.15
用户myuser权限信息:
mysql> show grants;
+-----------------------------------------------------------------------------------------------------------------------
-----------+
GRANT ALL PRIVILEGES ON . TO 'myuser'@'%' IDENTIFIED BY PASSWORD '*A4B6157319038724E3560894F7F932C8886EBFCF' WITH GR
ANT OPTION
GRANT ALL PRIVILEGES ON mysql.* TO 'myuser'@'%'
GRANT ALL PRIVILEGES ON test.* TO 'myuser'@'%'
+-----------------------------------------------------------------------------------------------------------------------
-----------+
3 rows in set (0.00 sec)
如题,请问如何解决mysql搭载问题?
环境如下:
mysql> use test; Database changed mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | test | +--------------------+ 3 rows in set (0.00 sec)
版本信息: mysql> status;
C:\Program Files\MySQL\MySQL Server 6.0\bin\mysql.exe Ver 14.15 Distrib 6.0.11-alpha, for Win64 (unknown)
Connection id: 45 Current database: test Current user: myuser@localhost SSL: Not in use Using delimiter: ; Server version: 6.0.11-alpha-community MySQL Community Server (GPL) Protocol version: 10 Connection: localhost via TCP/IP Server characterset: gbk Db characterset: gbk Client characterset: gbk Conn. characterset: gbk TCP port: 3306 Uptime: 2 hours 47 min 0 sec
Threads: 1 Questions: 1572 Slow queries: 0 Opens: 51 Flush tables: 1 Open tables: 7 Queries per second avg: 0.15
mysql
.* TO 'myuser'@'%'test
.* TO 'myuser'@'%'+----------------------------------------------------------------------------------------------------------------------- -----------+ 3 rows in set (0.00 sec)
mysql>