Warning: session_start(): open(/var/cpanel/php/sessions/alt-php74/sess_45389afb7a9750d3def58f87eda05d87, O_RDWR) failed: No such file or directory (2) in /home/xsofthost/public_html/help/wp-content/plugins/accelerated-mobile-pages/includes/redirect.php on line 358

Warning: session_start(): Failed to read session data: files (path: /var/cpanel/php/sessions/alt-php74) in /home/xsofthost/public_html/help/wp-content/plugins/accelerated-mobile-pages/includes/redirect.php on line 358
Set mysql root password after new installation on Linux - XsoftHost

Set mysql root password after new installation on Linux

What is MySQL

MySQL is a relational database management system based on SQL – Structured Query Language. The application is used for a wide range of purposes, including data warehousing, e-commerce, and logging applications. The most common use for mySQL however, is for the purpose of a web database.

Set MySQL root password

If you install a fresh MySQL database server on Linux, the root account within MySQL has no password set yet.

To set the root password :

First login to your server using ssh as administrator privileges and Issue the following command:

				
					/usr/bin/mysqladmin -u root password ‘your-new-password’

				
			
“your-new-password” is the new desired password for root mysql username. To test the new password just run the following command :
				
					/usr/bin/mysql -u root -p
#Enter password:


				
			
Share on facebook
Share on twitter
Share on linkedin
Share on telegram
Share on whatsapp

Related Posts