mysql 使用需要注意的问题

linux下mysql区分大小写,改变配置文件my.conf
在[mysqld]下添加lower_case_table_name=1(
0:大小写敏感;1:大小写不敏感)

MySQL的密码加密算法如下:
MySQL实际上是使用了两次SHA1夹杂一次unhex的方式对用户密码进行了加密。
具体的算法可以用公式表示:password_str= concat('*', sha1(unhex(sha1(password))))


---查询MYSQL所有表
select table_name from information_schema.tables where table_schema='库名'
---查询一个库下所有表的行数
MySQL:
select table_name,table_rows from information_schema.tables where TABLE_SCHEMA = 'dbehr_client_nx2' order by table_rows desc;
Oracle:
select table_name,num_rows from user_tables;

原文地址:https://www.cnblogs.com/Memories-off/p/10435588.html