Fatal Error during installation via fabfile

64 views
Skip to first unread message

Gianluca Petrocchi

unread,
May 23, 2013, 8:44:48 AM5/23/13
to mayan...@googlegroups.com
hi,
I've already installed Mayan EDMS without major problems but doing a new installation by fabfile I have this error:

localhost
] run: echo "CREATE DATABASE mayan;" | mysql-u root - password = mayan
[localhost] out: ERROR 1007 (HY000) at line 1: Can not create database 'mayan'; database exists


Fatal error: run () received nonzero return code 1 while executing!

Requested: echo "CREATE DATABASE mayan;" | mysql-u root - password = mayan
Executed: / bin / bash-l-c "echo \" CREATE DATABASE mayan; \ "| mysql-u root - password = mayan"

Aborting.
Disconnecting from localhost ... done.

With the help of
google I was able to fix the error but doing the installation again but I have another error:

[
localhost] run: echo "CREATE USER 'mayan' @ '127 .0.0.1 'IDENTIFIED BY' gGDp4NYogS ';" | mysql-u root - password = mayan
[localhost] out: ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for 'mayan' @ '127 .0.0.1 '


Fatal error: run () received nonzero return code 1 while executing!

Requested: echo "CREATE USER 'mayan' @ '127 .0.0.1 'IDENTIFIED BY' gGDp4NYogS ';" | mysql-u root - password = mayan
Executed: / bin / bash-l-c "echo \" CREATE USER 'mayan' @ '127 .0.0.1 'IDENTIFIED BY' gGDp4NYogS '; \ "| mysql-u root - password = mayan"

Aborting.

Disconnecting
from localhost ... done.

Solved this error and launching the installation again I have again the first error ( ERROR 1007),
I can not get out of it ... how can I fix it?

Viktoria Mikhno

unread,
Nov 14, 2013, 2:13:37 AM11/14/13
to mayan...@googlegroups.com
Please tell me how did you solve this problem? I've match error. but my script is - mysql -p -u username database_name < file.sql..

Gianluca Petrocchi

unread,
Nov 14, 2013, 1:03:45 PM11/14/13
to mayan...@googlegroups.com

the error is due to the 'existence of a previously created database with the name mayan probably due to previous incorrect installation, then creates a conflict. Board of dropping the database MySQL uninstall the package and reinstall it via the installation of fabfile of mayan.

Il 14/nov/2013 08:13 "Viktoria Mikhno" <vaporous...@gmail.com> ha scritto:
Please tell me how did you solve this problem? I've match error. but my script is - mysql -p -u username database_name < file.sql..

--
 
---
You received this message because you are subscribed to a topic in the Google Groups "Mayan EDMS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mayan-edms/0TedM84Oih0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mayan-edms+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages