broken database link in tutorial
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
broken database link in tutorial
I was looking for a good tutorial on using LC to create a front end for a mySQL database. I came across this page. http://lessons.runrev.com/m/4071/l/7003 ... l-database Unfortunately I can't seem to connect to the test database as i keep getting the error "Unknown database "renrev_test". Has this database been completely removed, or has the location changed with the LC name change? I have tried changing the location to livecode.com, but that didn't work.
Re: broken database link in tutorial
Hi magcie,
I think I came across this months ago.
put "runrev_test" into tDatabaseName
put "runrev_example" into tDatabaseUser
They should be both the same not sure which one is correct.
Simon
Edit err... both runrev_test or runrev_example
I think I came across this months ago.
put "runrev_test" into tDatabaseName
put "runrev_example" into tDatabaseUser
They should be both the same not sure which one is correct.
Simon
Edit err... both runrev_test or runrev_example
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: broken database link in tutorial
magice wrote:Unknown database "renrev_test"

-
- Livecode Opensource Backer
- Posts: 447
- Joined: Mon Jan 23, 2012 12:46 pm
Re: broken database link in tutorial
I just tested This code from the tutorial:
and got a connection ID....
Code: Select all
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
-- 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
Re: broken database link in tutorial
Hi all,
Thanks for letting us know about this issue
It looks like the database has been erased (possibly during the move to livecode.com). I now have re-created the Database, so the scripts in the lesson should work as expected
Kind Regards,
Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
—
Thanks for letting us know about this issue
It looks like the database has been erased (possibly during the move to livecode.com). I now have re-created the Database, so the scripts in the lesson should work as expected

Kind Regards,
Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
—
Re: broken database link in tutorial
You guys are awesome.runrevneil wrote:Hi all,
Thanks for letting us know about this issue
It looks like the database has been erased (possibly during the move to livecode.com). I now have re-created the Database, so the scripts in the lesson should work as expected
Kind Regards,
Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
—