DBA > Interview Resource

MySQL and SQL

Part:   1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32  33  34  35  36  37  38  39  40  41  42  43  44  45 

(Continued from previous part...)

How are ENUMs and SETs represented internally?

As unique integers representing the powers of two, due to storage optimizations.


How do you start and stop MySQL on Windows?

net start MySQL, net stop MySQL


How do you start MySQL on Linux?

/etc/init.d/mysql start


Explain the difference between mysql and mysqli interfaces in PHP?

mysqli is the object-oriented version of mysql library functions.


What’s the default port for MySQL Server?

3306


What does tee command do in MySQL?

tee followed by a filename turns on MySQL logging to a specified file. It can be stopped by command notee.


Can you save your connection settings to a conf file?

Yes, and name it ~/.my.conf. You might want to change the permissions on the file to 600, so that it’s not readable by others.


How do you change a password for an existing user via mysqladmin?

mysqladmin -u root -p password "newpassword"

(Continued on next part...)

Part:   1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  31  32  33  34  35  36  37  38  39  40  41  42  43  44  45