<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: cannot change password and cannot create database in Mysql in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-change-password-and-cannot-create-database-in-mysql/m-p/3549207#M783909</link>
    <description>You will need to reset the password.&lt;BR /&gt;&lt;BR /&gt;First start mysql with --skip-grant-tables option.&lt;BR /&gt;&lt;BR /&gt;Then run&lt;BR /&gt;&lt;BR /&gt;# mysql -u root mysql&lt;BR /&gt;mysql&amp;gt; UPDATE user SET Password=PASSWORD('your_new_password') where USER='root';&lt;BR /&gt;mysql&amp;gt; FLUSH PRIVILEGES;&lt;BR /&gt;&lt;BR /&gt;Finally, restart mysql without --skip-grant-tables option.&lt;BR /&gt;&lt;BR /&gt;You should be able to connect with your new password.&lt;BR /&gt;&lt;BR /&gt;# mysql -u root -p&lt;BR /&gt;Enter password: your_new_password</description>
    <pubDate>Sat, 21 May 2005 04:20:50 GMT</pubDate>
    <dc:creator>Ermin Borovac</dc:creator>
    <dc:date>2005-05-21T04:20:50Z</dc:date>
    <item>
      <title>cannot change password and cannot create database in Mysql</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-change-password-and-cannot-create-database-in-mysql/m-p/3549206#M783908</link>
      <description>Hi All, I am running Mysql 5.0.4 beta in HP-UX 11.0. &lt;BR /&gt;&lt;BR /&gt;1) In Manual, it tell us to run the following :&lt;BR /&gt;===========================================&lt;BR /&gt;PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !&lt;BR /&gt;To do so, start the server, then issue the following commands:&lt;BR /&gt;./bin/mysqladmin -u root password 'new-password'&lt;BR /&gt;./bin/mysqladmin -u root -h server.mydomain.com password 'new-password'&lt;BR /&gt;=========================================&lt;BR /&gt;&lt;BR /&gt;However, I cannot change password and cannot create database in Mysql. Error comes out when I run as below: e.g. I hope to change to password '123'. It seems no need to use password when I run #mysql -u mysql. It load automatically with no password. I hope to add password. I cannot create database. Why ?&lt;BR /&gt;&lt;BR /&gt;# pwd&lt;BR /&gt;/usr/local/mysql&lt;BR /&gt;# ./bin/mysqladmin -u root password '123'&lt;BR /&gt;./bin/mysqladmin: connect to server at 'localhost' failed&lt;BR /&gt;error: 'Access denied for user 'root'@'localhost' (using password: NO)'&lt;BR /&gt;# ./bin/mysqladmin -u root -h server.mydomain.com password '123'&lt;BR /&gt;./bin/mysqladmin: connect to server at 'server.mydomain.com' failed&lt;BR /&gt;error: 'Access denied for user 'root'@'server.mydomain.com' (using password: NO)'&lt;BR /&gt;# ./bin/mysqladmin -u mysql password '123'&lt;BR /&gt;./bin/mysqladmin: unable to change password; error: 'Access denied for user ''@'localhost' to database 'mysql''&lt;BR /&gt;# mysql -u mysql&lt;BR /&gt;Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;BR /&gt;Your MySQL connection id is 47 to server version: 5.0.4-beta-standard&lt;BR /&gt;&lt;BR /&gt;Type 'help;' or '\h' for help. Type '\c' to clear the buffer.&lt;BR /&gt;&lt;BR /&gt;mysql&amp;gt;create database testdatabase&lt;BR /&gt;    -&amp;gt; ;&lt;BR /&gt;ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'testdatabase'&lt;BR /&gt;mysql&amp;gt; create database testdatabase;&lt;BR /&gt;ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'testdatabase'&lt;BR /&gt;mysql&amp;gt;   show databases;&lt;BR /&gt;+--------------------+&lt;BR /&gt;| Database           |&lt;BR /&gt;+--------------------+&lt;BR /&gt;| information_schema |&lt;BR /&gt;| test               |&lt;BR /&gt;+--------------------+&lt;BR /&gt;2 rows in set (0.00 sec)&lt;BR /&gt;&lt;BR /&gt;mysql&amp;gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 21 May 2005 03:34:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-change-password-and-cannot-create-database-in-mysql/m-p/3549206#M783908</guid>
      <dc:creator>Kenneth_61</dc:creator>
      <dc:date>2005-05-21T03:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: cannot change password and cannot create database in Mysql</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-change-password-and-cannot-create-database-in-mysql/m-p/3549207#M783909</link>
      <description>You will need to reset the password.&lt;BR /&gt;&lt;BR /&gt;First start mysql with --skip-grant-tables option.&lt;BR /&gt;&lt;BR /&gt;Then run&lt;BR /&gt;&lt;BR /&gt;# mysql -u root mysql&lt;BR /&gt;mysql&amp;gt; UPDATE user SET Password=PASSWORD('your_new_password') where USER='root';&lt;BR /&gt;mysql&amp;gt; FLUSH PRIVILEGES;&lt;BR /&gt;&lt;BR /&gt;Finally, restart mysql without --skip-grant-tables option.&lt;BR /&gt;&lt;BR /&gt;You should be able to connect with your new password.&lt;BR /&gt;&lt;BR /&gt;# mysql -u root -p&lt;BR /&gt;Enter password: your_new_password</description>
      <pubDate>Sat, 21 May 2005 04:20:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-change-password-and-cannot-create-database-in-mysql/m-p/3549207#M783909</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-05-21T04:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: cannot change password and cannot create database in Mysql</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-change-password-and-cannot-create-database-in-mysql/m-p/3549208#M783910</link>
      <description>It does not work. no need to ask password. Now, I am very confuse. Should I use root or mysql to login to MySQL server ? :-( Should I use 'mysql -u root' or 'mysql -u mysql'.&lt;BR /&gt;&lt;BR /&gt;# ./mysql.server stop&lt;BR /&gt;Shutting down MySQL&lt;BR /&gt; SUCCESS! &lt;BR /&gt;#cd /usr/local/mysql&lt;BR /&gt;# bin/mysqld_safe --user=mysql --skip-grant-tables &amp;amp;&lt;BR /&gt;[1]     6915&lt;BR /&gt;# Starting mysqld daemon with databases from /usr/local/mysql/data&lt;BR /&gt;&lt;BR /&gt;#ps -e | grep mysql&lt;BR /&gt;  6915 pts/ta    0:00 mysqld_safe&lt;BR /&gt;  6931 pts/ta    0:01 mysqld&lt;BR /&gt;#mysql -u root mysql&lt;BR /&gt;Reading table information for completion of table and column names&lt;BR /&gt;You can turn off this feature to get a quicker startup with -A&lt;BR /&gt;&lt;BR /&gt;Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;BR /&gt;Your MySQL connection id is 1 to server version: 5.0.4-beta-standard&lt;BR /&gt;&lt;BR /&gt;Type 'help;' or '\h' for help. Type '\c' to clear the buffer.&lt;BR /&gt;&lt;BR /&gt;mysql&amp;gt; UPDATE user SET Password='123' where USER='root';&lt;BR /&gt;Query OK, 2 rows affected (0.00 sec)&lt;BR /&gt;Rows matched: 2  Changed: 2  Warnings: 0&lt;BR /&gt;&lt;BR /&gt;mysql&amp;gt; FLUSH PRIVILEGES;&lt;BR /&gt;Query OK, 0 rows affected (0.01 sec)&lt;BR /&gt;&lt;BR /&gt;mysql&amp;gt; quit&lt;BR /&gt;Bye&lt;BR /&gt;&lt;BR /&gt;# cd support-files&lt;BR /&gt;# ./mysql.server start&lt;BR /&gt;Starting MySQL&lt;BR /&gt; SUCCESS! &lt;BR /&gt;# mysql -u root -p&lt;BR /&gt;Enter password: ***&lt;BR /&gt;ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)&lt;BR /&gt;# mysql -u root -p&lt;BR /&gt;Enter password: &lt;BR /&gt;Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;BR /&gt;Your MySQL connection id is 3 to server version: 5.0.4-beta-standard&lt;BR /&gt;&lt;BR /&gt;Type 'help;' or '\h' for help. Type '\c' to clear the buffer.&lt;BR /&gt;&lt;BR /&gt;mysql&amp;gt; quit&lt;BR /&gt;Bye&lt;BR /&gt;# mysql -u mysql&lt;BR /&gt;Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;BR /&gt;Your MySQL connection id is 4 to server version: 5.0.4-beta-standard&lt;BR /&gt;&lt;BR /&gt;Type 'help;' or '\h' for help. Type '\c' to clear the buffer.&lt;BR /&gt;&lt;BR /&gt;mysql&amp;gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 21 May 2005 04:47:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-change-password-and-cannot-create-database-in-mysql/m-p/3549208#M783910</guid>
      <dc:creator>Kenneth_61</dc:creator>
      <dc:date>2005-05-21T04:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: cannot change password and cannot create database in Mysql</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-change-password-and-cannot-create-database-in-mysql/m-p/3549209#M783911</link>
      <description>UPDATE user SET Password='123' where USER='root';&lt;BR /&gt;&lt;BR /&gt;Please note the SQL command above should be changed to&lt;BR /&gt;&lt;BR /&gt;UPDATE user SET Password=PASSWORD('123') where USER='root';&lt;BR /&gt;&lt;BR /&gt;This will use encryption function PASSWORD to make sure encrypted password string is stored in the table 'user'.</description>
      <pubDate>Sat, 21 May 2005 05:06:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-change-password-and-cannot-create-database-in-mysql/m-p/3549209#M783911</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-05-21T05:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: cannot change password and cannot create database in Mysql</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-change-password-and-cannot-create-database-in-mysql/m-p/3549210#M783912</link>
      <description>WAH !!!! it works . I can change password and I can create database !!! Very happy , many thanks. Many thanks. Give you full mark. U know all the things.</description>
      <pubDate>Sat, 21 May 2005 06:17:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-change-password-and-cannot-create-database-in-mysql/m-p/3549210#M783912</guid>
      <dc:creator>Kenneth_61</dc:creator>
      <dc:date>2005-05-21T06:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: cannot change password and cannot create database in Mysql</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-change-password-and-cannot-create-database-in-mysql/m-p/3549211#M783913</link>
      <description>thanx man ...&lt;BR /&gt;I search it on c-panel forum but still it is use less&lt;BR /&gt;but u are great &lt;BR /&gt;i don't have any word to explain ur greatness&lt;BR /&gt;but one thing which i never forget that&lt;BR /&gt;U r really gr8!!!!</description>
      <pubDate>Sun, 07 May 2006 01:26:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-change-password-and-cannot-create-database-in-mysql/m-p/3549211#M783913</guid>
      <dc:creator>poops</dc:creator>
      <dc:date>2006-05-07T01:26:26Z</dc:date>
    </item>
  </channel>
</rss>

