How to trace mysql log in Google Cloud SQL?

孤街醉人 提交于 2019-12-07 18:23:31

问题


I just setup the phpMyAdmin for the Google Cloud SQL (http://goo.gl/Ey53WS) but am unable to finish at step "Log in to phpMyAdmin". I can just see the error message "Cannot log in to the MySQL server" from the login page.

Is there anyway for me to trace the error log from the MySQL (or the possible error for this)?


回答1:


Yes, you can enable Mysql flags general_log ON and log_output TABLE.

Then you can run query in table 'mysql': select * from general_log; and see if there are failed connections.

You can look at the App Engine logs too.

Check login (root by default) and password (empty by default) in PHP config file and check that CloudSQL authorize access to your application.



来源:https://stackoverflow.com/questions/28944383/how-to-trace-mysql-log-in-google-cloud-sql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!