revdberr invalid database connection

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Pistris
Posts: 148
Joined: Mon Jul 20, 2015 2:40 am

revdberr invalid database connection

Post by Pistris » Wed Aug 12, 2015 7:11 am

The simulator and the actual iphone are giving me this error when trying to make the connection to the database.

revdberr invalid database type

My database is the mysql service that comes with the livecode hosting
i can run the app fine from my mac and from my pc, but simulator and phone gives the error

i have checked the Mysql external under standalone application settings

the line of code am using is

put revOpenDatabase("MySQL", tDatabaseAddress, tDatabaseName, tDatabaseUser, tDatabasePassword) into tResult

My LC version is 7.1.0 Indy and Xcode 6.4

Another thing to note is that it gives me the error while disconected from the internet also , so something is happening before even trying to connect


going crazy here :)

zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: revdberr invalid database connection

Post by zaxos » Wed Aug 12, 2015 10:29 am

disable antivirus/firewall maybe? just athought :D
Knowledge is meant to be shared.

Pistris
Posts: 148
Joined: Mon Jul 20, 2015 2:40 am

Re: revdberr invalid database connection

Post by Pistris » Wed Aug 12, 2015 3:26 pm

???

Antivirus or firewall in my iphone?

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: revdberr invalid database connection

Post by Klaus » Thu Aug 13, 2015 11:01 am

Hi Pistris,

try with LOWERCASE as indicated in the dictionary:
...
put revOpenDatabase("mysql", tDatabaseAddress, tDatabaseName, tDatabaseUser, tDatabasePassword) into tResult
...

Best

Klaus

Pistris
Posts: 148
Joined: Mon Jul 20, 2015 2:40 am

Re: revdberr invalid database connection

Post by Pistris » Fri Aug 14, 2015 5:17 am

It does not work in lowercase either

zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: revdberr invalid database connection

Post by zaxos » Sat Aug 15, 2015 5:33 pm

Sorry i missed the mobile part, i'm a lazy reader.
Knowledge is meant to be shared.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: revdberr invalid database connection

Post by Simon » Sat Aug 15, 2015 8:33 pm

Hi Pistris,
Any chance you forgot to tick the MySQL box in the standalone builder?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Pistris
Posts: 148
Joined: Mon Jul 20, 2015 2:40 am

Re: revdberr invalid database connection

Post by Pistris » Mon Aug 17, 2015 7:58 pm

No, i didnt forget

I rolled back to 7.0.6 and xcode 6.3 and it works perfect so its definitely a bug.

SChamblee
Posts: 19
Joined: Wed Jun 24, 2015 7:45 pm

Re: revdberr invalid database connection

Post by SChamblee » Sun Aug 23, 2015 12:47 am

I have same issue, It works on PC, MAC and Android but gives an error on ios. I'm using LIveCode 7.1 (dp1)

SChamblee
Posts: 19
Joined: Wed Jun 24, 2015 7:45 pm

Re: revdberr invalid database connection

Post by SChamblee » Sun Aug 23, 2015 5:11 am

I got the same results as Pistris, Install LiveCode 7.0.6 and Xcode 6.3 and it worked on ios.

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: revdberr invalid database connection

Post by Dixie » Sun Aug 23, 2015 11:36 am

I have no problem connecting to a database here...
liveCode 7.1(rc1), xCode 6.4

a snippet of the script being used...

Code: Select all

local theDataRef

on mouseDown
   get revOpenDatabase("mysql", "theDatabaseAddress", "theDatabaseName", "theDatabaseUser", "jtheDatabasePassword")
   put it into theDataRef
   get revDataFromQuery( tab, return, theDataRef, "SELECT * FROM playtimes ;")
   set the thePlayTimes of this stack to it
   revCloseDataBase theDataRef
end mouseDown
It works on the desktop, in the simulator and on the iPhone... :-)

Pistris
Posts: 148
Joined: Mon Jul 20, 2015 2:40 am

Re: revdberr invalid database connection

Post by Pistris » Sun Aug 23, 2015 6:59 pm

Dixie are you using the bussines edition?

Am using the business edition
I haven't tried the community edition

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: revdberr invalid database connection

Post by Dixie » Sun Aug 23, 2015 7:50 pm

Community... but for all intents and purposes, they are the same... at the moment

Post Reply