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! Link to comment https://forums.phpfreaks.com/topic/32265-using-database-on-an-external-hard-drive/ 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. Link to comment https://forums.phpfreaks.com/topic/32265-using-database-on-an-external-hard-drive/#findComment-149773 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 ? Link to comment https://forums.phpfreaks.com/topic/32265-using-database-on-an-external-hard-drive/#findComment-149775 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 Link to comment https://forums.phpfreaks.com/topic/32265-using-database-on-an-external-hard-drive/#findComment-149781 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. Link to comment https://forums.phpfreaks.com/topic/32265-using-database-on-an-external-hard-drive/#findComment-149840 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.