Hi, I've been running a very old (32bit lc server v6 on Ubuntu 16) for years and the following script works to connect to the SQL database. My new(er) server (64bit lc server v9 on Debian 8) throws up ~Function: error in function handler (revOpenDatabase)~ so something has clearly changed. I've tried removing the socket references, changing the connection type but the error message remains the same. Has the syntax for revOpenDatabase changed and I'm reading old documentation again?
Thanks Kevin # connect to the database command dbConnect put "/var/run/mysqld/mysqld.sock" into _Socket put revOpenDatabase("MySql", "localhost:3306", _dbName, _dbUser, _dbPass,, _Socket) into DB if DB is not a number then put "Error: could not connect to database!" & BR end dbConnect _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode