ViralStef Posted December 30, 2006 Share Posted December 30, 2006 Hi allI have a localhost and I want to use a database on an external hard drive, so the database is not placed in .../mysql/data/.How can I do this?Thx! Quote Link to comment Share on other sites More sharing options...
marcus Posted December 30, 2006 Share Posted December 30, 2006 The database is in localhost, as long as you have both set up and are on the same LAN network it should work just fine. Quote Link to comment Share on other sites More sharing options...
ViralStef Posted December 30, 2006 Author Share Posted December 30, 2006 Hm, but how can I access that database with PHP? It won't find the database, it's not placed in C:\Program Files\EasyPHP1-8\mysql\data ? Quote Link to comment Share on other sites More sharing options...
marcus Posted December 30, 2006 Share Posted December 30, 2006 Well your external drive is obviously going to be like E:\P-files\e-php-1-8\ms\data Quote Link to comment Share on other sites More sharing options...
Barand Posted December 30, 2006 Share Posted December 30, 2006 Untested, but there is a "datadir = /path/to/db/root" setting in "my.ini" file.Try changing that to point to the external drive folder instead. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.