How can I access the table comment from a mysql table?

Based on the answer by OMG Ponies, but using INFORMATION_SCHEMA.TABLES instead of INFORMATION_SCHEMA.COLUMNS. When looking around on the web, all I could find was info on the columns’ comments, but never on the table’s. This is how to get a table’s comment. SELECT table_comment FROM INFORMATION_SCHEMA.TABLES WHERE table_schema=”my_cool_database” AND table_name=”user_skill”; +————————–+ | table_comment | +————————–+ … Read more

Restricting MySQL connections from localhost to improve security

If you restrict access from remote hosts to your usernames and passwords then someone won’t be able to access the database externally. You could also configure your firewall to only allow traffic to 3306 (MySQL Default Port) from the localhost machine. Update To setup your user so they can only access through LOCALHOST use: GRANT … Read more

Check WordPress Version in a MySQL database

Should be in wp_options table, the field is called db_version. So, yes, it’s possible. You can run this SQL command (substitute your table name if different): SELECT * FROM `wp_options` where option_name=”db_version” Make sure to consult the codex, as the db_version looks different from the wp version. for instance: For Version 3.1, the database version … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)