在window上跑得好好的程序,放到linux上面抛出异常:
[quote]Base table or view not found message from server: "Table 'mmusic.cfg_telCode' doesn't exist"。[/quote]
检查了半天才发现是表名大小写不一致导致的,window下默认表明是忽略大小写得,linux下是大小写敏感的。
赶紧将linux的/etc/my.cnf配置文件修改一下:
[quote]
在[mysqld]下加入一行:
lower_case_table_names=1[/quote]
重启mysql,这样就忽略表名大小写了,万事大吉!
[quote]Base table or view not found message from server: "Table 'mmusic.cfg_telCode' doesn't exist"。[/quote]
检查了半天才发现是表名大小写不一致导致的,window下默认表明是忽略大小写得,linux下是大小写敏感的。
赶紧将linux的/etc/my.cnf配置文件修改一下:
[quote]
在[mysqld]下加入一行:
lower_case_table_names=1[/quote]
重启mysql,这样就忽略表名大小写了,万事大吉!