Using MySQL with on-rev database
Posted: Tue Apr 20, 2010 7:43 pm
I have been using a script for accessing a MySQL database on my local server- I am now trying to move it to my on-rev account. I created a database in the on-rev account and then created a new user name (and password) and assigned it to the database. I modified the script from the original functioning stack with what I think are the appropriate changes, however, I cannot get it to accept the password when connecting:
It returns this Error message: Access denied for user 'theNewLogonID'@'myName.myUniversity.edu' (using password: YES)
I don't have the same phpMyAdmin tools as in the University server so I can't check the db permissions the way I am used to.
This is the essence of the code (with changes to the names):
I tried creating another user and password, but I get the same result.
Does anyone recognize the source of the error?
This is a scripting format that I found and modified a while back, so if there is a better way to do this I'm open to it.
Thanks,
It returns this Error message: Access denied for user 'theNewLogonID'@'myName.myUniversity.edu' (using password: YES)
I don't have the same phpMyAdmin tools as in the University server so I can't check the db permissions the way I am used to.
This is the essence of the code (with changes to the names):
Code: Select all
global dbresult, dbID, dbSQL, sqlResult
Answer "Connected to the Internet and ready to submit?" with "Yes" or "No"
if it ="Yes" then
put revOpenDatabase("MySQL", "MyAccount.on-rev.com","LearningDemo","theNewLogonID","theNewPassword") into dbresult
put dbresult
answer dbresult
if dbresult is a number then
put dbresult into dbID
else
answer dbResult
end if
put "INSERT INTO Flying VALUES ('" & field "SubmitDate" & "'," into dbSQL
put "'" & field "SubmitTime" & "'," after dbSQL
put "'" & field "FirstName" & "'," after dbSQL
put "'" & field "LastName" & "'," after dbSQL
put "'" & field "TotalTime" & "')" after dbSQL
if last char of dbSQL = ";" then delete last char of dbSQL
revExecuteSQL dbID, dbSQL
put the result into sqlResult
if sqlResult is a number then
answer "Submission OK: " & sqlResult & " record(s) altered." with "OK"
else
answer sqlResult with "OK"
end if
end if
Does anyone recognize the source of the error?
This is a scripting format that I found and modified a while back, so if there is a better way to do this I'm open to it.
Thanks,