You are here: Re: remote creation of MySQL db « PHP Programming Language « IT news, forums, messages
Re: remote creation of MySQL db

Posted by Colin McKinnon on 01/20/06 23:41

Adam Plocher wrote:

> Ike, I'm not sure if this helps but you can use mysqladmin to reset
> your root password (or someone elses password, for that matter).
>
> More info here (search for mysqladmin on this page):
> http://dev.mysql.com/doc/refman/5.0/en/default-privileges.html

.....or you can use the mysql client (where you type SQL DDL/DML comamnds at
a command prompt.

Both of these require shell access to a machine with the programs available
and which in turn has access to the mysql port on the DBMS so you might...

some_user@home:~ $ ssh webdev@phpbox.mydomain.com
Password:
Last login: Fri Jan 20 20:58:42 2006 from console
webdev@phpbox:~ $ mysql dbadmin@mysqlbox.mydomain.com
Password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: x.y.z

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> SET PASSWORD FOR 'webdev'@'phpbox'
-> = OLD_PASSWORD('newpwd');

(if your starting from a MS Windows box get a copy of PuTTy)

HTH

C.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация