[CWB] autosetup MySQL error: No database selected

Hardie, Andrew a.hardie at lancaster.ac.uk
Thu Jul 7 19:34:26 CEST 2016


Very puzzling.

If I’d accidentally broken something in a recent change, it should not have affected the old version. Also, while the nature of the error seems to be the same as the one that Daniel reported yesterday, it is hitting a step or two later (on the first SQL query, rather than on connection).

Can I suggest you change lines 62 and 76 of autosetup.php from

          $Config->print_debug_messages = false;

to
          $Config->print_debug_messages = true;

and see whether any of the extra output leading up to the failure clarifies matters?

Also, have you by any chance upgraded MySQL or PHP since you had success with the process ? There are potential version issues ………….

Thanks.

Andrew.

From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Thilo Wiertz
Sent: 07 July 2016 17:25
To: cwb at sslmit.unibo.it
Subject: [CWB] autosetup MySQL error: No database selected

I managed to get CQPweb to work just two days ago on a virtual machine. Now trying again with basically the same config I'm stuck with an error message running autosetup.php:

Now finalising setup for this installation of CQPweb....

Installing database structure; please wait.
A MySQL query did not run successfully!

Original query:

show tables like 'db_%'
            /* from User: ??? | Function: do_append_mysql_comment() | 2016-Jul-07 18:17:44 */


Error # 1046: No database selected


The MySQL server, database, table and user are all set up and running and correctly referenced in the config file. I tried stable and dev branches via svn.


Thanks for any suggestions!
Thilo


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20160707/faa3d053/attachment.html>


More information about the CWB mailing list