Welcome Guest, Not a member yet? Register   Sign In
DBForge table creation error 1046
#5

[eluser]CroNiX[/eluser]
Maybe try
Code:
$this->load->database('default');
sleep(2); //give time to connect, 2 seconds is probably more than needed...

Then try to add tables.

If that doesn't work, try $this->db->reconnect(); instead of loading the db.

However, not sure any of that will work. Never seen anyone try to drop the db they are currently connected to. There must be a better way...


Messages In This Thread
DBForge table creation error 1046 - by El Forum - 09-10-2014, 04:44 PM
DBForge table creation error 1046 - by El Forum - 09-11-2014, 01:37 PM
DBForge table creation error 1046 - by El Forum - 09-11-2014, 01:45 PM
DBForge table creation error 1046 - by El Forum - 09-11-2014, 04:11 PM
DBForge table creation error 1046 - by El Forum - 09-11-2014, 06:27 PM
DBForge table creation error 1046 - by El Forum - 09-11-2014, 07:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB