0

When trying to create a database for OpenSIPS I got this error:

root@root:/etc/opensips# opensipsdbctl create
MySQL password for root:
INFO: test server charset
INFO: creating database opensips ...
ERROR 1007 (HY000) at line 1: Can't create database 'opensips'; database exists
ERROR: Creating database opensips failed!
karel
  • 5,489
  • 46
  • 45
  • 50

1 Answers1

1

You may have executed this command before, although it was not successful, but the database was built. Directly drop the opensips database and re-execute the command.

root@root:/etc/opensips# mysql -u root -p
MySQL password for root:
mysql> DROP DATABASE opensips;
mysql> quit
root@root:/etc/opensips# opensipsdbctl create
Ruby
  • 11
  • 1