[CWB] autosetup MySQL error: No database selected

Thilo Wiertz thilo.wiertz at geographie.uni-freiburg.de
Fri Jul 8 00:59:43 CEST 2016


Dear Andrew, thanks a lot for your quick response. I'm not sure what went wrong and the debug messages weren't very revealing. I finally did a complete un- and reinstall of MySQL and that did the trick.

Thilo


> Am 07.07.2016 um 19:34 schrieb Hardie, Andrew <a.hardie at lancaster.ac.uk>:
> 
> Very puzzling.
>  
> If I’d accidentally broken something in a recent change, it should not have affected the oldversion. 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
>  
>  
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it <mailto:CWB at sslmit.unibo.it>
> http://devel.sslmit.unibo.it/mailman/listinfo/cwb <http://devel.sslmit.unibo.it/mailman/listinfo/cwb>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20160708/7f0c6994/attachment-0001.html>


More information about the CWB mailing list