在跨平台的程序设计中要注意到mysql的一些系统变量在windows和linux上的缺省值是不同的, 比如mysql表名称的大小写变量. 在windows上lower_case_table_names变量的缺省值为1; 在linux上为0; 在mac os上为2; 该变量值的详细定义如下: Value Meaning 0 Table and database names are stored on disk using the lettercase specified in the CREATE…
2015-08-27 php大力力021.mysql表名在mac下不能大写 刚才数据库里面,phpMyAdmin狂出错. Some errors have been detected on the server! Please look at the bottom of this window. Notice in ./libraries/structure.lib.php#1868 Undefined index: Rows Backtrace ./libraries/structure.li…
转:http://blog.csdn.net/qq_29246225/article/details/52293549 一.Linux中MySQL大小写详情:1.数据库名严格区分大小写2.表名严格区分大小写的3.表的别名严格区分大小写4.变量名严格区分大小写5.列名在所有的情况下均忽略大小写6.列的别名在所有的情况下均忽略大小写 二.设置MySQL表名不区分大小写1.切换到root用户$ su - root 2.修改/etc/my.cof配置文件,# sed -i '/mysqld/a\lowe…
天将window的项目迁移到linux上面,然后登录时一直报用户表找不到的错误信息. 检查发现数据库中的表名是m_user, 后来才想起来是大小写问题, 找到问题原因,解决方案如下: 修改/etc/my.cnf ,在[mysqld]下面添加一行,然后重启mysql数据库即可. service mysql stop service mysql start # 设置mysql表名不区分大小写lower_case_table_names=1…