Getting started with MySQL

  • Install MySQL. If necessary, install mysql-server.
  • Start MySQL (/etc/init.d/mysqld start)
  • Setup root password
        shell> mysql -u root
        mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpwd‘);
        mysql> SET PASSWORD FOR 'root'@'host_name‘ = PASSWORD(’newpwd‘);
      
  • Create a normal user
        mysql> GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost'
        ->     IDENTIFIED BY 'some_pass'
       
  • Don't forget to flush privileges
        mysql> FLUSH PRIVILEGES;
      
blog/linux/getting_started_with_mysql.txt · Last modified: 2007/04/09 10:13 (external edit)
Back to top
Open Systems Lab
Indiana University Computer Science Department
Lindley Hall 215
150 S. Woodlawn Ave.
Bloomington, IN 47405-7104

chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0