xampp启动mysql报错 报错如下: 16:56:50 [mysql] Error: MySQL shutdown unexpectedly. 16:56:50 [mysql] This may be due to a blocked port, missing dependencies, 16:56:50 [mysql] improper privileges, a crash, or a shutdown by another method. 16:56:50 [mysql] Press the Logs …

2024-01-26 0条评论 125点热度 0人点赞 王显锋 阅读全文

原文链接 MySQL查看表占用空间大小 查看方法 查看指定数据库所有表容量大小 SELECT table_schema AS '数据库', table_name AS '表名', table_rows AS '记录数', TRUNCATE(data_length / 1024 / 1024, 2) AS '数据容量(MB)', TRUNCATE (index_length / 1024 / 1024, 2) AS '索引容量(MB)' FROM information_schema.tables WHERE tab…

2023-03-20 0条评论 868点热度 0人点赞 王显锋 阅读全文

导入 使用mysql -u root -p登录之后,使用如下命令导入sql文件(mysql用户需要对sql文件有读取权限): use dbname; source /dbname.sql; 导出 导出整个数据库 mysqldump -u root -p dbname > dbname.sql 只导出一个表 mysqldump -u root -p dbname tablename > tablename.sql

2022-12-14 0条评论 980点热度 0人点赞 王显锋 阅读全文

用phpmyadmin连接mysql8.0报错 解决方法 命令行登录mysql; mysql>use mysql; mysql>ALTER USER root IDENTIFIED WITH mysql_native_password BY '你的密码'; mysql>FLUSH PRIVILEGES; 参考链接 http://tieba.baidu.com/p/5693304822

2019-07-10 0条评论 1919点热度 0人点赞 王显锋 阅读全文