Skip to content
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

Unable to install on cloud server #320

Open
alaksandarjesus opened this issue Jun 13, 2024 · 2 comments
Open

Unable to install on cloud server #320

alaksandarjesus opened this issue Jun 13, 2024 · 2 comments

Comments

@alaksandarjesus
Copy link

alaksandarjesus commented Jun 13, 2024

I was able to got till step 3

image

after i click on save&next i am getting blank screen.

image

My php is 8.3
image

Mysql Version is 8.0
image

I tried to debug to some extent and from Ins2.php the code stops executing at

 $myFile = "OpensisSchemaMysqlInc.sql";
 executeSQL($myFile);

And the exectueSQL function i used some var_dump like below

 if (par_rep_mt('/.+;/', $l) != 0 && !$delim) {
		    var_dump("<br>cmd = ".$cmd);
                    $result = $dbconn->query($cmd) or die($dbconn->error);
                    var_dump("<br>result = ".$result);
                    $cmd = '';
                }

And this is the result i got (for easy reading purpose i changed the background)

image

so practically the whole execution stops at

cmd = CREATE FUNCTION fn_marking_period_seq () RETURNS INT BEGIN INSERT INTO marking_period_id_generator VALUES(NULL); RETURN LAST_INSERT_ID(); END"

I tried to increase max_execution_time but did not work.

So i tried to run the sql using phpmyadmin

image

I got below response

image

I am not sure, i need to degrade the versions or is there a fix for this

@emrahyigit
Copy link

I guess there is a compatibility issue with MySQL 8. I have exactly same problem.

@inomyabcs
Copy link

I had this problem as well. This was an issue for me with binary logging, as I went through the entire SQL include file with myphpadmin and received the message below on the same spot @alaksandarjesus found.

ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL,
or READS SQL DATA in its declaration and binary logging is enabled
(you might want to use the less safe log_bin_trust_function_creators
variable)

I tried using the non deterministic statements, but they are not compatible with CREATE FUNCTION. I then went and disabled binary logging using mysqld (add a line with skip-log-bin) and the process completed.

References
MySQL Stored Programs Logging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants