HELP - Error message when trying to log into MySQL - Solved

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

HELP - Error message when trying to log into MySQL - Solved

Post by DR White » Fri Jan 29, 2016 7:46 pm

I used the MySQL Database wizard to setup database and user name.
I have the following Connect Button script:

on mouseUp
  -- use a global variable to hold the connection ID so other scripts can use it
    global gConnectionID
    
    -- set up the connection parameters - edit these to suit your database
    --put "runrev.com" into tDatabaseAddress
   -- put "runrev_test" into tDatabaseName
   -- put "runrev_example" into tDatabaseUser
   -- put "example" into tDatabasePassword
    ----drwhite.on-rev.com
----- drwhite_Test_1
----drwhite_drw10

    put "drwhite.on-rev.com" into tDatabaseAddress
    put "drwhite_Test_1" into tDatabaseName
    put "drwhite_drw10" into tDatabaseUser
    put "XXXXXXXX" into tDatabasePassword




    -- connect to the database
    put revOpenDatabase("MySQL", tDatabaseAddress, tDatabaseName, tDatabaseUser, tDatabasePassword) into tResult
    
    -- check if it worked and display an error message if it didn't
    -- & set the connection ID global
    if tResult is a number then
        put tResult into gConnectionID
        answer info "Connected to the database." & cr & "Connection ID = " & gConnectionID
    else
        put empty into gConnectionID
        answer error "Unable to connect to the database:" & cr & tResult
    end if
end mouseUp


I have checked these things and my password at least 20 times, but I keep getting the error below:

Unable to connect to database
Access denied for user.
.........
(Using Password:YES)


What could I be doing wrong?

Thanks,

David

A1Qicks
Posts: 79
Joined: Sat Dec 26, 2015 10:47 am

Re: HELP - Error message when trying to log into MySQL - Sol

Post by A1Qicks » Tue Feb 02, 2016 10:48 am

What was your solution? I don't have this problem but I am curious.

Post Reply