Allow remote SQL connection to Mysql from any host
Allowing the login of a user from any host in Mysql is simple: mysql> select host, user from mysql.user; +—————+——+ | host | user | +—————+——+ | 127.0.0.1 | root | | localhost | root | |...
View ArticleHow to install MySQL on CentOS
Here are the steps of what you need to do in order to install and setup MySQL on a new server. We’ll prepare a fresh CentOS 6 system (64 bit) for use as a database server. All you need is access to an...
View ArticleMySQL: Grant **all** privileges on database
At mysql prompt as root user: GRANT ALL privileges ON *.* TO ‘user’@’machine.lan’ IDENTIFIED BY ‘password’ WITH GRANT OPTION; FLUSH PRIVILEGES; That’s all
View ArticleMonitoring a bottleneck with strace
If let’s say Mysql is slow at performing a task you can check what is the bottleneck using strace to attach to the process. <span style="color: #00ff00;">$ ps -ef|grep -i mysql</span>...
View ArticleReset Mysql password from bash prompt
You can recover MySQL database server password with following five easy steps. Step # 1: Stop the MySQL server process. Step # 2: Start the MySQL (mysqld) server/daemon process with the...
View ArticleWhen a MySQL table was last updated?
Simply do this: SELECT UPDATE_TIME FROM information_schema.tables WHERE TABLE_SCHEMA = 'dbname' AND TABLE_NAME = 'tabname' nJoy ;-)
View ArticleMysql list privileges for a user
SHOW GRANTS; SHOW GRANTS FOR CURRENT_USER; SHOW GRANTS FOR CURRENT_USER(); e.g. SHOW GRANTS FOR root; mysql> SHOW grants for root; +———————————————————————————-+ | Grants for root@% |...
View ArticleNode.js handling mysql disconnects.
You may lose the connection to a MySQL server due to network problems, the server timing you out, the server being restarted, or crashing. All of these events are considered fatal errors, and will have...
View Article
More Pages to Explore .....