Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How can I move the physical location of the mySQL db?

Featured Replies

I've got the mySQL db physically located here:

 

\usr\local\mysql\data\(mydb)

 

I would like to have US on C:\US, for example, and have my db on my USB drive. How do I get mySQL to look for the physical db file somewhere else?

I don’t think that’s possible. A USB drive letter can change depending in what order you connect USB devices.

 

If you want to use existing databases on your PC and have a separate database on your USB stick.

 

You could try the following compromise:

 

Copy Uniform server to your USB Stick.

Run the servers.

Run move servers once (this changes the ports)

Install your database

 

The application that accesses this database requires its MySQL port changing from 3306 to 3307.

 

Don’t know if that helps with what you are trying to do.

 

All the best

Ric ;)

  • Author

Thanks for the replay, Ric.

 

I'm hoping I can work up a script to use a variable USB drive letter, although I'm not sure if that's possible, either, as you mentioned.

 

I'm a lightweight on mySQL and I've not tried to change the physical location of a mySQL file before (normally, I just dump it and import it to different server). After a bit of Google-ing it was not clear to me how I should accomplish a physical location move with US.

 

My end goal is to encrypt my db using mySQL encryption, store just the db on the USB stick, then have US in a folder on the desktop of different PCs.

 

I'll experiment with the migration tool as you suggested.

 

Thanks, again.

John

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.