原帖由 lord14383 于 2010-3-8 10:54 PM 发表
小弟我遇到一点问题。。。
请各位大大帮帮忙,谢谢大大的合作^^
我在做VB带textbox资料输入进mySQL遇到问题
InvalidOperationException was unhandled
Unable to retrieve stored procedure metadata. E ...
原帖由 lord14383 于 2010-3-9 01:11 AM 发表
谢谢你们的回复^^
我已经安装了Connector可是还是跟之前一样(其实我之前就已经安装了connector,只不过我换成新版本的)
现在的问题是:MySqlException was unhandled
SELECT command denied to user "@'localhost' for table 'proc'
原帖由 lord14383 于 2010-3-10 04:45 PM 发表
For a = 0 To counter
Dim SelectText As String
Dim SelectStatement As MySqlCommand
Dim SelectReader As MySqlDataReader
SelectText = " SELECT * FROM orderform1 where No=" + (a + 1).ToString + ";"
SelectStatement = New MySqlCommand(SelectText, myConnection)
SelectReader = SelectStatement.ExecuteReader()
While (SelectReader.Read())
MessageBox.Show(SelectReader.GetInt32(0).ToString + " "+ SelectReader.GetInt32(1).ToString + " " +SelectReader.GetString(2).ToString + " " +SelectReader.GetInt32(3).ToString + " " +SelectReader.GetInt32(4).ToString + " " +SelectReader.GetInt32(5).ToString)
'Me.DataGridView1.Item(0, i - 1).Value = SelectReader.GetInt32(0)
'Me.DataGridView1.Item(1, i - 1).Value = SelectReader.GetInt32(1)
'Me.DataGridView1.Item(2, i - 1).Value = SelectReader.GetString(2)
'Me.DataGridView1.Item(3, i - 1).Value = SelectReader.GetInt32(3)
'Me.DataGridView1.Item(4, i - 1).Value = SelectReader.GetInt32(4)
'Me.DataGridView1.Item(5, i - 1).Value = SelectReader.GetInt32(5)
End While
SelectReader.Close()
a = a + 1
Next
为什么只执行一次呢?
明明我有用for loop了,为什么。。。。。
真的很奇怪。。。。。
原帖由 lord14383 于 2010-3-16 04:20 PM 发表
请问一下,如何才能backup mysql database?
我用mysqldump test 〉backup.sql;
我在网上找到的,他们都是这样用,可是为什么我就使用不到
error message就是讲mysqldump这里有问题
请大大们帮帮小弟谢谢
原帖由 lord14383 于 2010-3-16 05:57 PM 发表
请问一下,你的意思是不是这样呢?
C:\Program Files\MySQL\MySQL Server5.1\bin\mysqldump --host=localhost -uroot test 〉sql.dump;
我这样写有没有问题呢?
我没有设置密码的,那么的话我需要加-p吗?
欢迎光临 JBTALKS.CC (https://jbtalks.my/) | Powered by Discuz! X2.5 |