Did you drop the database and recreate it after you tried to create the tables 
with the root user? That sounds like there were already tables there when you 
ran that command, and it couldn’t recreate them because of the constraints on 
the existing tables.

If you don’t have any data it in, I would drop and recrecreate the database; 
then run that script again.

Dan Rich <dr...@employees.org> |   http://www.employees.org/~drich/
                               |  "Step up to red alert!"  "Are you sure, sir?
                               |   It means changing the bulb in the sign..."
                               |          - Red Dwarf (BBC)

On April 5, 2023 at 08:14:06, Andrew Meyer via Bacula-users 
(bacula-users@lists.sourceforge.net) wrote:

I'm trying to set up bacula on AlmaLinux 8.7 w/ MariaDB 10.11 and getting the 
following error:

$ sudo /usr/libexec/bacula/make_mysql_tables -u bacula -p  
Enter password:  
ERROR 1005 (HY000) at line 112: Can't create table `bacula`.`Job` (errno: 150 
"Foreign key constraint is incorrectly formed")
ERROR 1005 (HY000) at line 286: Can't create table `bacula`.`Pool` (errno: 150 
"Foreign key constraint is incorrectly formed")
Creation of Bacula MySQL tables succeeded.

The error was much worse when I tried to run this as mysql root user.   

Can someone point me in the right direction to resolve this?
_______________________________________________  
Bacula-users mailing list  
Bacula-users@lists.sourceforge.net  
https://lists.sourceforge.net/lists/listinfo/bacula-users  

Attachment: signature.asc
Description: Message signed with OpenPGP using AMPGpg

_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to