This worked for me: First get debian-sys-maint user pass from /etc/mysql/debian.cnf Example: debian-sys-maint YTERYgkjhbsfk87ce Then: $mysql -u debian-sys-maint -p password: (put YTERYgkjhbsfk87ce here) mysql> UPDATE mysql.user SET Password=PASSWORD('my_new_password') WHERE User='root'; mysql> flush privileges; mysql> quit $mysqladmin -u root password my_new_password (I didn't use this one since I don't like remote root access) $mysqladmin -p -u root -h localhost password my_new_password -- CONNECTION SETTINGS -- open /etc/mysql/my.cnf file sudo vi /etc/mysql/my.cnf Make sure bind-address set to your server IP address (not to 127.0.0.1) bind-address = 192.158.5.1 Also make sure line skip-networking is removed or commented out # skip-networking Save and close the file; Restart mysql sudo /etc/init.d/mysql restart
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
MySQL Ubuntu Setup (See related posts)
You need to create an account or log in to post comments to this site.
Related Posts
» Using this function you will... in apache php mysql find ruby rails time date perl regex shell http osx mac css python google html bash error windows sql activerecord javascript java rubyonrails unix linux database c text csharp XSLT image string xml file array web url math mongrel_cluster hash convert dscl C++ sips series60 rexml REBOL jonas jsfromhell raoni sinatra rscript
» Statement Emulation in apache php mysql find ruby rails time date perl regex shell http osx mac css python google html bash error windows sql activerecord javascript java rubyonrails unix linux database c text csharp XSLT image string xml file array web url math mongrel_cluster hash convert dscl C++ sips series60 rexml REBOL jonas jsfromhell raoni sinatra rscript
» Subscribe to a RSS feed of y... in apache php mysql find awk email lighttpd ruby rails ssh date perl regex shell textpattern svn osx mac css python google html bash subversion backup script sql javascript dom expressionengine java flash actionscript rubyonrails unix linux applescript cli c ajax image xml terminal file web sed list delphi administration directory
» Fill data into an XML templa... in apache php mysql find ruby rails time date perl regex shell http osx mac css python google html bash error windows sql activerecord javascript java rubyonrails unix linux database c text csharp XSLT image string xml file array web url math mongrel_cluster hash convert dscl C++ sips series60 rexml REBOL jonas jsfromhell raoni sinatra rscript
» Wrap all methods (functions)... in apache php mysql find ruby rails time date perl regex shell http osx mac css python google html bash error windows sql activerecord javascript java rubyonrails unix linux database c text csharp XSLT image string xml file array web url math mongrel_cluster hash convert dscl C++ sips series60 rexml REBOL jonas jsfromhell raoni sinatra rscript
» Movie Ttrailer New Moon in apache php mysql find awk lighttpd ruby rails ssh date perl regex shell textpattern svn http osx mac css python google html bash subversion windows sql activerecord javascript expressionengine java actionscript rubyonrails unix linux applescript cli database c text ajax image string xml terminal file array web delphi administration convert
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails