-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors while importing jorani.sql in Jorani 1.0.2 #391
Comments
Jorani doesn't support MySQL 5.5 as it uses utf8mb4 charset. This is the first error you get. Please use 5.7 (I might drop support for 5.7 in favor of 8 that was release 5 years ago and supports CTE requests in few versions). For the other error it looks like you're trying to import twice the same table I see no other explanation. |
Hello @bbalet ,
Yeah that's fine. Could you please update in the official website docs as well as other users wont face the issue.
To recheck. I checked by creating a new database and importing there . Then too the same issue on MYSQL 5.7. |
What you are describing is not possible. On an empty database, you are injecting the following values:
How can you get a primary key violation for the column |
Hello @bbalet , Thanks for the instructions. I checked on fresh setup of MYSQL 5.7 . I now get a different issue there . jorani.sql is imported successfully. However cannot see any tables there . I configured config.php and database.php with correct details . On visiting http://domain.com/jorani102/index.php/ following is thrown :
However, there is no Session_database_driver.php inside /libraries/Session/drivers What could be the issue?. Using this zip for install . https://github.com/bbalet/jorani/releases/download/v1.0.2/jorani-1.0.2.zip |
At the root of your installation, there's a requirements.php script (example: https://demo.jorani.org/requirements.php) what is the result when you open it in a browser ? |
Hello @bbalet , |
This diagnostic page says that the database was partially created, some tables are missing. |
Hello @bbalet ,
Okay . Any idea to resolve this?. |
How did you import the database ? |
Created a new database and then through phpmyadmin I imported the sql/jorani.sql into the database.
There was no error while doing so .
Yes i noticed that there are no tables in the db . |
I don't know how to help you as it is not related to Jorani in itself. |
Hello @bbalet , Got it solved . By commenting /* CREATE DATABASE IF NOT EXISTS jorani CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; However, I get an error while Jorani login i.e after entering the default credentials as mentioned in docs I am unable to login and following is thrown under browser console :
This is similar to 392. Any workaround for this ?. |
Hello @bbalet , Also have one more request . Could you please update version number to 1.0.2 in index.php file . https://github.com/bbalet/jorani/blob/v1.0.2/index.php#L325 Regards. |
Hello @bbalet ,
I was in the process of manual installation of Jorani 1.0.2 downloaded from
https://github.com/bbalet/jorani/releases/download/v1.0.2/jorani-1.0.2.zip on Centos 7 with PHP 8.1, Apache 2.2, MYSQL 5.5.
However, while importing jorani.sql into database throws the following error i.e :
Following is screenshot of the same :
I also checked with MYSQL 5.6. There also same issue .
On MYSQL 5.7 I get another issue while importing the SQL i.e :
Screenshot for the same :
What is the version of Jorani?
1.0.2
Expected behavior
SQL import should work fine without errors.
Actual behavior
SQL import throws error.
Steps to reproduce the behavior
How do I resolve the issue ?. Could you please replicate at your end and fix this?. What is the minimum MYSQL version required for installing Jorani?.
The text was updated successfully, but these errors were encountered: