Quantcast
Channel: SudoAll.com | Tag Archives: Mysql
Browsing latest articles
Browse All 9 View Live

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 Article



Image may be NSFW.
Clik here to view.

How 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 Article

MySQL: 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 Article

Image may be NSFW.
Clik here to view.

Monitoring 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 Article

Image may be NSFW.
Clik here to view.

Reset 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 Article


When 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 Article

Image may be NSFW.
Clik here to view.

Mysql 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 Article

Node.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


Image may be NSFW.
Clik here to view.

Getting Qcache stats from MYSQL

SHOW STATUS LIKE ‘Qcache%';   nJoy  

View Article

Browsing latest articles
Browse All 9 View Live




Latest Images