Results 1 to 3 of 3

Thread: moving database from its default directory where mysql puts on new databases

  1. #1

    moving database from its default directory where mysql puts on new databases

    I am thinking of moving my database from its default directory where mysql puts on new databases. I am currently running OpenNA 1.0 and my database server may soon be out of disk space. I know I can do this thru my.cnf. Are there anything to consider execept changing the ff:

    datadir=/var/lib/mysql

    How about the basedir should I change it too to the desired location?

    Hope you can help me.

    Thanks and more power.

  2. #2
    Senior Member
    Join Date
    Apr 2002
    Posts
    417

    Re:moving database from its default directory where mysql puts on new databases

    Is your db server in production? Why don't you just try editing the my.cnf, don't move the data, and see what happens. I would assume that mysql would complain that the mysql db's (users, hosts, etc) can't be found. Then copy over the mysql db's and restart mysql. if all you accounts are still there then that's good. Then try moving over all other db's. Make sure to look at your logs.




  3. #3

    Re:moving database from its default directory where mysql puts on new databases


Similar Threads

  1. Cannot start X again ....
    By DjiT in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 02-23-2005, 11:51 PM
  2. Visio's Database Links
    By The Donald in forum Windows - General Topics
    Replies: 0
    Last Post: 01-05-2005, 06:32 AM
  3. Active Directory LDAP Compliance
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-04-2005, 02:34 AM
  4. Resulution problem in KDE
    By Buller in forum Linux - General Topics
    Replies: 3
    Last Post: 08-13-2004, 05:25 PM
  5. Gentoo XF86Config
    By mojo jojo in forum Linux - Software, Applications & Programming
    Replies: 9
    Last Post: 02-06-2004, 07:26 PM

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
  •