MySQL strange behaviour: "b'schemaname'" schema is created - mysql

this is my frist time posting something like this but im pulling my hair our, for days on end i have been trying to debug and find what is wrong with mysql, i run a gameserver and use mysql to store all the players information, like items, clothes etc, i recently came into this issue, i can no longer run sql scripts, when i try an error is thrown and a new schema is created with the name of the current schema im trying to run the script in, but it creates it like this b'schemaname' (schemaname being what the name of my schema is that im trying to run the script on), now i have reinstalled mysql and to no luck the issue still persists, i have included a video to show exactly what i mean and what is happening. ----> https://youtu.be/l6o4r5jtpcU <------ I appreciate every and anyone that helps, its not too big of an issue as i can still run the scripts a different way but still, i have no idea what has caused this or a fix for it, thank you

Related

BIRT connection issue

Please let me preface by saying I know absolutely nothing about BIRT. I have never worked with it but find myself having to diagnose an issue with our use of it. Doing so, I've become stumped.
Background:
There have been no code changes related to any of our BIRT files in years
We have all versions locked to something specific, so we didn't accidentally roll forward to a newer, incompatible version
We're running in a Docker container now (docker-compose specifically). This is the closest thing to a smoking gun I see -- perhaps when we migrated, some 'done directly on the server' change was left behind? Environment variable, manually downloaded JAR, something like that? But I don't even know what to check, and I cannot access the old version to compare differences.
The problem:
When visiting a URL such as http://localhost/birt/frameset?__report=something.rptdesign&__format=pdf&skey=something&__title=something&Company_id=something we get an error:
+ Multiple exceptions occurred.
What I have tried
Looking into the webapps/birt/logs/ReportEngine_*.log file, I see the following:
org.eclipse.birt.data.engine.odaconsumer.ConnectionManager openConnection
SEVERE: Unable to open connection.
org.eclipse.birt.report.data.oda.jdbc.JDBCException: Missing properties in Connection.open(Properties).
Elsewhere, I've seen that moving some missing JARs into birt/webapps/WEB-INF/lib can address such issues, but doing so has not yielded any different results. I have tried doing so with both mysql-connector-java-8.0.26.jar and org.eclipse.birt.report.data.oda.jdbc-4.8.2.jar but it has not changed the behavior. I think my error is unrelated to that but I thought it was worth a try.
I'm sure that error is correct -- something is missing from Properties in Connection.open(Properties) but I do not know BIRT well enough to know where it's looking for that or how to feed it what it needs/how to know what's missing.
I see that we have a DB.properties file in the parent folder of our rptdesign files like so:
|- something/
|---- something.rptdesign
|- DB.properties
This file contains just a JDBC mysql string like foo.bar.com=jdbc:mysql://something:3306/something
It looks like every .rptdesign file has the same connection information in it, but also contains a username/password. I am able to connect to the database using those credentials.
Any help or other ideas are very appreciated. I can try to provide whatever details are needed in case something isn't clear. Unfortunately, I don't know enough to know what that might be.

Creating a database in Laravel

Forgive me if this is a silly question, just been scratching my head for hours on this and cannot find a decent answer!
I'm writing a script to install a Laravel CMS to a database and would like to have it create the database from the given name if it does not exist.
I am at the stage where the system understands that the database does not exist and so needs to create it, But every time I run my code I get the exception:
SQLSTATE[HY000] [1049] Unknown database 'mytesting' (SQL: CREATE DATABASE mytesting)
I'm running the code as follows to initiate the database creation:
DB::statement(DB::raw('CREATE DATABASE '.$_POST['DbDatabase']));
Now, I can understand that this may be crashing because the database name set in the .env is that of a database that is yet to exist, but I am wondering if there is a way to have the system simply auth to MySQL via login (No db name specified) and then create the table?
I've run the provided sql inside Sequel pro and it works there so I know it's valid, But am confused all the same!
If any yall could shine some light on this I'd be eternally grateful!
Thanks guys <3
I finally managed to figure out a way around this!
So instead of using Laravel's DB manager I ended up using a PDO instance instead as I could control what it did at a much more granular level. I specified the connection details out of the env file.
Thanks so much for your help guys <3

MySql Structure Check and Suggestion

Please forgive me if this is not the correct place for this question.
A while back while working on a Mysql database I come across something that did a check on the database and the database structure and provided a sort of report that gave suggestions on what types/lengths/values to be used based on the data in the database.
I have been searching for this and just cant seem to find it again, has any come across anything like this or know where I can find this again.
Currently using phpmyadmin and also had a look on Navicat

Can't edit table row in phpmyadmin

I've just had an issue with a client's site they couldn't login to an admin area I built for them. I verified this and went straight into the database via phpmyadmin.
I thought I'd try to edit the admin password and see if something has gone wrong here. I've clicked edit (pencil icon) however I don't get the row to edit I get the following...
Column | Type | Function | Null | Value
and a go button, no edit options, no row data, I click go and get an error:
tbl_replace.php: Missing parameter: goto
I'm guessing there is some kind of database issue going on here. I've tried a Check Table and an Analyze Table, with no results output.
Not really sure what's going on here, I've never come across this before.
Any ideas? Sorry if it's a bit vague I've tried to include as much info as I could as simply as I could.
[UPDATE]
I think I've found the culprit to a few issues on my vps, including database and my clients website etc. I found that my tmp directory is full. Old sessions and misc files not being cleared. This could very well be the cause. I have one file '.cpanel_easy-.bLfpq2ZYoTbdcY_c' that I can't identify that is taking up a whole lot of space, if I knew what this was I could possibly fix my issue.
I can confirm that the issue I was having was caused by the tmp directory on my VPS being full. It was filled with old temporary install files and a bunch of sessions (hundreds) and other miscellaneous files mainly from software updates but a whole bunch from various Wordpress installations, I'm guessing plugins with some messy coding that don't clean up after themselves.
Thanks to those that helped out.

Body could not be parsed as valid XML/AMF/JSON in Flash builder AMF and MySql

I have search the net and am un able to resolve this issue
Due to my weak programming skills I do panic and wonder perhaps im just doing it wrong obviously lol
Just wondered if anyone could give me some insight to work out my issue!
i have a Flash Builder 4.5 web site connecting with AMF to MySql database
I can query the database as well as delete, update, search and i have even got pagination working!
But when it comes to inserting a row of data I get the above error message
Now every thing works even when I test the php script in flash builder Test Operation
So I just need someone to tell me can I send an ValueObject to Mysql or do i need to convert it into something else?
As im sending it as the object but its only inserting the first 2 values and the other 8 are missing and i get the above error in Network Monitor
On searching this issue most people that ask this question and don't get an answer.
The error is displayed in the response of Network Monitor so is the a php error or mysql?
OK I have solved the problem. as in I still get the error but I think I know why but it all works now so I'm happy with that :)
and the reason I was getting the error was for some reason I didn't think that it mattered with variable name consistence through the different programming types, I just assumed that the compiler worked it all out by magic lol.
So in flex I had Country and in "Flash builder Test Operation" I had Country and on my mysql database I had CountryCode. The reason I think I still get the error is because there are still cells within the newly created row that are left NULL as these will be updated later :) hope my silly mistake that cost me many days will helps some one :)