Results 1 to 4 of 4

Thread: Mysql command line on network

Hybrid View

  1. #1
    Member omidkamangar's Avatar
    Join Date
    Mar 2006
    Location
    Kurdistan
    Posts
    239

    Mysql command line on network

    Hi,
    In our database lab, there is server running windows 2000 and several clients connected to it (all win 2000), MySQL server is installed on the server, and MySQL Administrator on all clients. I can access the MySQL server through the network using MySQL Administrator, but I have no idea how should I connect to the MySQL server from command line.
    On my pc at home, it is very easy, just out the mysql in the PATH enviroment variable and its done.
    Can anyone help me how should I connect to the server from command line through a network?
    Thnaks in advance.
    This will be over soon, and then I can ...

  2. #2
    You just need to supply some parameters. Easiest way is to create profile file .my.cnf if you use unix or you have to check whatever name for profile they use on PC. Something like this:

    PHP Code:
    [client]
    host=mysql.myserver.net
    user
    =mydbusername
    password
    =mydbpassword

    [mysql]
    database=mydatabase

    [mysqldump]
    add-drop-table=TRUE 
    It has section [client] that is common for all mySQL programs and then separate section for each program.

    You can supply all these parameters on command line too. In your case you probably need host. It's DNS name of the server or IP address. And may be you need to specify port too, if it uses some non standard port. But this I am not sure how. May be just to add something like :1234 to address.

    And, BTW, if they don't have mySQL port firewalled, you can access it from any place on the Internet. At least my server provider has it open, and I can use mySQL from my home machine.

  3. #3
    Quote Originally Posted by omidkamangar View Post
    Hi,
    In our database lab, there is server running windows 2000 and several clients connected to it (all win 2000), MySQL server is installed on the server, and MySQL Administrator on all clients. I can access the MySQL server through the network using MySQL Administrator, but I have no idea how should I connect to the MySQL server from command line.
    On my pc at home, it is very easy, just out the mysql in the PATH enviroment variable and its done.
    Can anyone help me how should I connect to the server from command line through a network?
    Thnaks in advance.
    why don't you install phpmyadmin?

  4. #4
    Command line is more conviniet in a number of cases if you want peridically run some jobs like backup, for example. Also phpmyadmin can have troubles loading large databases.

Similar Threads

  1. Troubleshooting Home Networking
    By CoolJsa14 in forum Windows - General Topics
    Replies: 0
    Last Post: 01-05-2005, 09:05 PM
  2. Network Tutorial
    By Waka-Gashira in forum Windows - General Topics
    Replies: 3
    Last Post: 01-05-2005, 04:05 AM
  3. Live Communications Server 2005 Glossary
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-01-2005, 08:16 PM
  4. Fixing 95/98 Networking problems
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-01-2005, 01:35 AM
  5. mysql installation instructions & permissions
    By elovkoff in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 02-06-2002, 10:51 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •