Change WAMP MySQL Data Location not working - mysql

I am running WAMP off of a Google Drive folder, which is working fine on my home computer. But when I try to access it from my work computer that I have synced with Google Drive, I run into problems. I'm trying to change the MySQL Data location to the location on the Google Drive folder. I looked at the solution on these pages:
How to change mysql database directory on WAMP
Change of MySQL database location not working
But it didn't do the trick. MySQL is still looking at the data location on my work computer and not at the one on the Google Drive folder.
Thanks in advance for the help.

The default WAMP Server is not meant to be a portable application.
But a portable application is what you want.
I'd check out the following portable WAMP solutions:
http://www.uniformserver.com/
http://www.uwamp.com/en/
http://zwamp.sourceforge.net/
They will better suit your needs!
I'd install one to the Google Drive and transfer all your projects to it.
Then you will never ever have to worry about something like this coming up.

Related

I installed XAMP on Mac: I found htdocs, where do I find the folders in my localhost web browser?

I opened the localhost:8080/phpmyadmin in my browser and created a new database. Then I located the XAMP app from my mac application folder to find "htdocs". Inside I found the other "my.cnf" "php.ini" "proftpd.conf" and "httpd.conf" files. I opened each one of them to find my new database folder or the other default folders and none of it is their.
The other Youtube videos show it is located just under the htdocs folder, but none of the databases are their. How do I locate my database?
Also if someone can answer this, can I move that folder into my desktop and work from their?
You could theoretically move the folder to your desktop. It is not recommended to do so, as the desktop is where you most likely have all your important files, if you are a typical user. The database should be stored in /Applications/XAMPP/xamppfiles/var/mysql
I believe that you are using macOS, as described by the title, and as such, that is where XAMPP should be storing your database files.
Try to use MAMP . I think its better to use MAMP for MAC rather xampp.
https://www.mamp.info/en/downloads/
If you are still using xampp.
Try to find your databases under
xampp\mysql\data ..
Thanks.

Syncing (sharing) xampp mysql database over multiple machines on mac Sierra

I want to sync (share) A MYSQL database over several computers. My strategy here is to move the database to a DropBox directory so it can be used on multiple machines. I have found a clear description of how to do this on Windows, but the location of the database in the XAMPP directory and the names and locations of the mysql configuration files (my.ini on Windows, my.cnf on mac) are different. The config file directives are different enough that I couldn't get it to work on the mac simply by comparing the changes made in the Windows file.
I tried moving the MYSQL database and changing the my.cnf file as it made sense to me to direct the software to the new location and was unable to get it to work. I also tried leaving the config files along and attempting to redirect xampp with a symlink in the directory where it looked for the database folder. In neither case could I get xampp to fire up mysql.
I have had inconsistent success using symlinks with xampp, using them primarily to redirect xampp to a new php localhost directory. In this case I couldn't get it to do this with mysql.
Does anyone know how to do this, i.e. which setting in the my.cnf file need to be redirected (I've tried about every variation I could think of) or how to get it to follow a smylink to the alternative directory?
Thanks in advance for any help.
--Kenoli
if you are on a Local Area Network you can simply use one of your PCs as a mysql server and connect to the database using the local IP address. If not, I solved this using Hamachi, and using the Hamachi ip address of the pc you want to use as a server. I know this is not a direct response about the symlinks and DropBox, but it solves the problem.

WAMP: MySQL not running with network drive

I have copies of WAMP running on some computers. All copies of WAMP use the same database. So far, this database was in the WAMP-installation on each of the computers and I had to synchronize these databases manually by exporting and importing dump files.
Now I started using an external hard drive on which I made a copy of the database files. When I connect this external hard drive to any of the computers and replace in the file my.ini the path to the database by setting
datadir="G:/mysql/mysql5.7.9/data"
where G is the drive letter of the external hard drive, everything works fine.
However, when I attach the external hard drive to the usb port of my router and make it available on any of my computers with the drive letter Z, and when I adapt the file my.ini by setting
datadir="Z:/mysql/mysql5.7.9/data",
WAMPSERVER does not start up the mysql service and when I try to open phpMyAdmin, it fails with the message that it cannot connect to the MySQL-server.
I would be very grateful if someone can give me some idea why WAMPSERVER does not start up correctly with the network drive and how to overcome this problem.

Can I run (XAMPP) MySQl inside my DropBox folder?

Lots of conflicting reports out there when I google; can anyone help?
Basically I want to have the same databases available at work & home PCs, for development porpoises only.
I will only ever be physically at one PC (with a 45 minute trip between) and only then will there be database access. The MySql service will be running on both, but only one will be write/reading the database. Both run Windows 7
I don't need to bother with symlinks, junctions, etc as I have enough space in my DropBox to install all of Xampp there.
Can I do that without corruption?
I use something similar as part of my remote development testing, I have never tried to run a large set of data from this or a production database. Haha, but for testing queries and setting up a couple rows, etc... I use something very similar with little to no problems.
I believe that you can run the portable xampp and mysql from your Dropbox just go to www.portableapps.com to get the xampp and also download the portable launcher from the link on the page.
Let XAMPP server run on your computers, and the data folder saved on your cloud (DropBox, SkyDrive, etc).
You should install XAMPP portable on your root folder (c:) that is the same on all computer you use, then you can move XAMPP data folder (xampp Apache htdocs) and MySQL data (xampp Mysql/data) folder to Dropbox.
Do not use XAMPP installer, but use the portable one.
Configure the folder settings on both Apache and MySQL config file:
C:\xampp\apache\conf\httpd.conf
C:\xampp\apache\conf\extra\httpd-ssl.conf
C:\xampp\apache\conf\extra\httpd-xampp.conf
C:\xampp\mysql\bin\my.ini
Do the same with other server that you use (PostgreSQL, etc).
Make sure that you:
Always turn off XAMPP server after using on each PC.
Always sync Dropbox before changing PC, that is before logging on and after logging off on different computer.
Mind host / local domain variable on each computer.
Its probably better to use same username for all computer you want to use to run the data folder.
Other method is using PortableAppas.com, that is running the apps directly from USB.

Uploading MVC Website and MySQL to Webhost

I created a website using Code Ignitor and MySQL and want to upload everything to 000webhost.com
How do I:
upload my models, views and controllers to the public_html folder of 000webhost?
get my MySQL database up and running on 000webhost?
Thanks in advance
I am presuming that your control panel is cPanel. If thats the case then upload all your files in the web root of the server. Create a database, and change that details in database.php inside config folder. thats it, your site will be up and running.
Your .htaccess (at least mod_rewrite for codeigniter) will not work if you use the free 000webhost service (at least the last time i wanted it, the support told me that they doesn't support it... that was thy time i signed up for their free service for private test of scripts i wrote). Another thing is that for the free hosting they use their own control panel (not cPanel), cPanel is for the paid accounts.
Anyway they both offer ftp accounts, mysql databases and of course web ftp (online file manager). All you need is a ftp client (such as FileZilla or even Windows Explorer itself).