MySQL Interview Answers

2 min
7
0
0
Published on updated on
  1. How do you start and stop MySQL on Windows?

    net start MySQL, net stop MySQL

  2. How do you start MySQL on Linux?

    /etc/init.d/mysql start

  3. Explain the difference between MySQL and MySQLi interfaces in PHP?

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

  4. What's the default port for MySQL Server?

    3306

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

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

  7. How do you change a password for an existing user via MySQLadmin?

    mysqladmin -u root -p password "newpassword"

  8. Use MySQLdump to create a copy of the database?

    mysqldump -h mysqlhost -u username -p mydatabasename > dbdump.sql

  9. Explain the difference between MyISAM Static and MyISAM Dynamic

    In MyISAM static all the fields have fixed width. The Dynamic MyISAM table would include fields such as TEXT, BLOB, etc. to accommodate the data types with various lengths. MyISAM Static would be easier to restore in case of corruption, since even though you might lose some data, you know exactly where to look for the beginning of the next record.

  10. What does myisamchk do?

    It compressed the MyISAM tables, which reduces their disk usage

Click on the link to search and apply for MySQL jobs

Answers sourced from www.techinterviews.com

 

 

 

Continue reading around the topics :

Comment

In the same category

The best IT jobs for introverts IT Career Advice
Introverts can thrive in IT jobs that require focus, problem-solving, and independent work. There are plenty of roles perfect for those who prefer working behind the scenes.
4 min
data jobs in the UK IT Career Advice
Data jobs in the UK are in high demand, with roles in data science, engineering, and analysis offering excellent career stability. From junior data analysts to senior roles like chief data officer, these positions provide clear growth opportunities with salaries ranging from £25,000 to £100,000+
3 min
Preparing for your Junior Data Analyst interview IT Career Advice
Interviews for a Junior Data Analyst role can be challenging, but preparation is key. Be ready to discuss tools like Excel, SQL, and Python, and share how you've used them in projects. This guide covers key questions and tips to help you feel confident.
4 min

Connecting Tech-Talent

Free-Work, THE platform for all IT professionals.

Free-workers
Resources
About
Recruiters area
2024 © Free-Work / AGSI SAS
Follow us