mysql
oooodboooo
这个作者很懒,什么都没留下…
展开
-
给mysql默认root用户设置密码
给mysql默认root用户设置密码 1. KILL掉系统里的MySQL进程; 2. 用以下命令启动MySQL,以不检查权限的方式启动; mysqld_safe -skip-grant-tables & 3. 然后用空密码方式使用root用户登录 MySQL; mysql -u root 4. 修改root用户的密转载 2014-10-24 15:27:48 · 922 阅读 · 0 评论 -
统计MySQL中某个数据库中有多少张表
SELECT count(*) TABLES, table_schema FROM information_schema.TABLES where table_schema = 'test' GROUP BY table_schema; 将test更改成你要查找的数据库就可以了。转载 2014-11-04 13:34:48 · 1237 阅读 · 0 评论