MySQL Basic Commands for DBA
Linux
command
Command: - df –h
Command: - free –m
Command: - Cat /etc/redhat-release
Command: - uname –a ------------------ (For architectural info
.i.e. 32 or 64 bit)
Command: - mysql –V
/etc/my.cnf
/var/log/mysql.log
/var/lib/mysql
MySQL Basic Understanding & Command
MySQL, the most popular Open Source SQL database management
system, is developed, distributed, and supported by Oracle Corporation. The MySQL Web site (http://www.mysql.com/)
provides the latest information about MySQL software.
Refer below official link for more detail on below topics.
http://dev.mysql.com/doc/refman/5.5/en/what-is-mysql.html
http://dev.mysql.com/doc/refman/5.5/en/what-is-mysql.html
Basic MySQL Commands:-
mysql>show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |------- (From 5.5)
| test |
+--------------------+
mysql> use xyz;(“xyz” database name)
mysql> create database abcd; (“abcdb” database name)
mysql> show tables;---
it will show you all the tables of the particular database.
mysql> grant all on *.* to 'username'@'localhost' identified by ‘pass’;
mysql> Flush privileges;