show tables;
结果中有hdmsg表;
但是查询的时候:
SELECT * FROM dsdvrdb.hdmsg ;时,却提示表不存在,在information_schema数据库的tables中,也确实找不到dsdvrdb所有的表,但其他的数据库中的表就有,是怎么回事?dsdvrdb中所有表都是采用innodb,其他的库中采用的是myisam。
结果中有hdmsg表;
但是查询的时候:
SELECT * FROM dsdvrdb.hdmsg ;时,却提示表不存在,在information_schema数据库的tables中,也确实找不到dsdvrdb所有的表,但其他的数据库中的表就有,是怎么回事?dsdvrdb中所有表都是采用innodb,其他的库中采用的是myisam。
解决方案 »
- com.mysql.jdbc.CommunicationsException: Communications link failure
- MySQL 5.0 一般会用什么storage engine ?
- 请问用mysql的存储过程如何实现这个功能?
- **Postgresql配置问题**(pgAdmin 无法连接服务器)
- mysql难道不支持嵌套查询?
- mysql 汉字字节
- 求教sql查询的思路和方法
- 如何将这三个查询语句合并为一个查询?
- mysql存储过程遍历,为什么只遍历第一条数据
- 网络连接断开了,每次mysql_ping() 阻塞20秒左右?
- 关于MYSQL编码问题~~ 求解决
- mysql 删除重复的记录
备份与导入的两个MYSQL版本是否一致?
让我郁闷的是,我再次source了这两个,刚正常的变得不正常,不正常的变正常!
郁闷!我是在程序中source的。
我是在程序中source的。?
string resumecommand1 = "mysql -hlocalhost -uroot -p***";
string resumecommand4 = "use " + databasename + ";";
string resumecommand5 = "source " + sql;
Process p = new Process(); p.StartInfo.FileName = "cmd.exe"; p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow = true; p.Start(); //启动 p.StandardInput.WriteLine(resumecommand1);
p.StandardInput.WriteLine(resumecommand4);
p.StandardInput.WriteLine(resumecommand5); p.StandardInput.WriteLine("exit");
mysql -uroot -p*** database < aaa.sqL
就行 了
用mysql -uroot -p*** database < aaa.sqL 目前还没有发生这个错误。
就这样吧,这个该死的问题折腾了我快两天了!