win7 mysql 启动 问题

>net start mysqlhtml

1 mysql服务没法启动 系统错误 1067mysql

 

解决方法:sql

1 多是my.ini 的配置问题数据库

2 可能mysql 的 默认端口被占用:ide

 

C:\Users\ustc>netstat -aon|findstr "3306"
  TCP    0.0.0.0:3306           0.0.0.0:0              LISTENING       3176
  TCP    [::]:3306              [::]:0                 LISTENING       3176

 

 

查看占用了端口 3306 的进程。this

tasklist|findstr "3176"spa

杀死进程code

taskkill /f /pid 3176htm

再从新启动 mysql。blog

2 . net start mysql 时 服务名无效的问题

mysql服务没有安装。

解决办法: 在 mysql bin目录下 以管理员的权限 执行 mysqld -install命令

而后仍然以管理员的权限 net start mysql 开启Mysql服务了。

附卸载mysql服务的方法。

一、以管理员的权限 net stop mysql ,关闭mysql服务

二、以管理员的权限 mysqld -remove ,卸载mysql服务

3 . 已存在的库,可是show databases; 没有显示出来 

网上有解释:http://storysky.blog.51cto.com/628458/504406/

说my.ini中

mysql手册,里面是这样解释skip-show-database的

  With this option, the SHOW DATABASES statement is permitted only to users who have the SHOW DATABASES privilege, and the statement displays all database names. Without this option, SHOW DATABASES is permitted to all users, but displays each database name only if the user has the SHOW DATABASES privilege or some privilege for the database. Note that anyglobal privilege is considered a privilege for the database.

,原来若是不加这个选项全部的用户均可以 show databases的,只不过看到的只有本身有权限的库而已。若是 Show_db_priv: Y 的话估计就表示这个用户对全部数据库都有show databases权限了。

因此 我本来启动mysql后,mysql 进入,show databases; 没有显示 我原来建立的数据库,

可是当我mysql –u root 进入,就显示所有的了。

(另外,对我说...数据库目录都在F盘,之后别乱找了)

相关文章
相关标签/搜索