- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need to change iexpress/mysql home directory
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2005 11:37 PM
12-12-2005 11:37 PM
Need to change iexpress/mysql home directory
I need to change iexpress/mysql home directory from /opt/iexpress/mysql to 'external_mount_point'. How can I do this?
TIA.
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2005 11:48 PM
12-12-2005 11:48 PM
Re: Need to change iexpress/mysql home directory
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2005 11:50 PM
12-12-2005 11:50 PM
Re: Need to change iexpress/mysql home directory
First make a tar file of the home directory.
cd /opt/iexpress
tar xvf /tmp/mysgl.tar mysql.
umount iexpress/mysql
mount the new directory.
cd
cp /tmp/myscq.tar
tar cvf mysql.tar
then throug sam or with usermod change the home directory of the user that use /opt/iexpress/mysql.
usermod -d
after this you also have to put the new mount piont in /etc/fstab to make sure it mount with a reboot.
grtz. Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2005 04:34 AM
12-13-2005 04:34 AM
Re: Need to change iexpress/mysql home directory
Will this do? Will your steps also move existing databases? Actually I need to move mysql itself and its databases into another location safely.
Thanks.
Regards,
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2005 07:10 AM
12-13-2005 07:10 AM
Re: Need to change iexpress/mysql home directory
Steps:
1)Bring down the database.
2)modify my.cnf for the new location.
3)move or copy the files from the new to the old location.
4) Bring up the database.
Tips:
NFS must have full rights to the owners of the files.
Storing the database files on a Samba mount is possible, but I'd stay away from Linux Samba using regular user based authentication.
Good Luck,
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com