I get following message when trying to first install the typo3 7.6 LTS version.
I have tried several new databases, they are all empty and I still keep getting this error:
**Error:
Duplicate entry '1' for key 'PRIMARY'**
You could try to empty that table by hand and execute the shown sql query by hand. Maybe you can identify the error.
You also should compare the definition of the table in question.
maybe your mysql(?) has some problems creating the tables as expected.
I was able to access the backend by calling the URL, even without making it to step5 (100%) the backend opens up. Step 4/5 would reload and redirect so I tried logging into the backend without finishing to the last step. It seems to work.
Related
Bit of a back story, I was using MySQL Server 5.X on an old server. Retired server and migrated all data to a new server with MySQL 8.0.11 (now 8.0.12) installed. Used Legacy authentication to reduce issues.
This seemed to work and all my programs open/ran as expected. I've been editing them and publishing without any issues as well, however in that time I have not had any reason to change any of the data sources.
I've gone to change the data source today though and can not get it to work for the life of me.
If I try and make any changes I get the error "Configure TableAdapter tbl_users failed. Specified cast is not valid.". Obviously the table name varies and this happens regardless of which table (even trying to add a new table that I've just created).
It seems to work though, but on closer inspection, the delete and update commands are not created which means if I try and run the application I just get errors.
I've currently got:
Visual Studio 2015
MySQL Connector Net 6.9.8
MySQL for Visual Studio 1.2.7
Thanks in advance for any help/ideas.
#A Tyler. I suggest trying to update the MySQL for Visual Studio and MySQL connector to the newest versions. Have you tried that?
I think this issue is somehow related with the one described here.
https://bugs.mysql.com/bug.php?id=31338
This bug dates back to version 5.1 of the connector and VS 2005... should have been fixed right now, but the symptoms are very similar.
Maybe you found any other solution?
Update:
I 'slept' with the problem and found a workaround on the next day. This does not really solve the issue but made it possible to continue with the project.
I went to the 'properties' window of a table adapter and manually edited select and update commands there. It caused the table adapter to reflect these changes and I could use the new table field in my program. For me, this is good enough.
I'm learning SQL / MySQL using WAMPSERVER and the MySql extension for vsCode, so that I can write, comment and keep the code in the vsCode editor, instead of sending volatile queries with the command line.
This morning I created a database by right-clicking a database / New Query:
After creating it this way, I was able to create code that I run without having to write USE DBaseName before the selected lines, as in the selected three lines you can see below:
Yet, after restarting my laptop at home, the same code will not run. It returns the usual
undefined
Error: ER_NO_DB_ERROR: No database selected
unless I write the USE statement, as in the last group (4 lines) of code. So I have to write that every time I want to try a query...
Why did it work this morning and not now? How can one run queries without having to constantly write USE DBaseName?
(links to explanations to further understand the underlying mechanism are also very welcome...)
EDIT: posting image of server in vsCode to answer comment:
I'm using a local server (pic below) which hasn't changed since this morning...
I have recently upgraded Joomla from 2.5 to 3.0 and also upgraded my JomSocial to the latest version. Immediately after upgrading, everything worked fine. I then woke up this morning to a SQL error. There is as follows:
1064 You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use
near 'AND memberid=1293' at line 1 SQL=DELETE FROM
d8whn_community_groups_members WHERE groupid= AND memberid=1293
because of this error I cannot get to my admin page anymore. I get this error on both the main site and the admin site.
I think this is being caused by JomSocial since it references the community_groups_members table. So I attempted to manually remove all of the components and plugins, and modules, as well as all of the tables that contained _community in the database. So My question is two fold.
Has anyone experienced this and do you possibly have a solution?
Is there a way that I can directly pinpoint which file the error is coming from?
This is a critical problem as it has my site completely down. Can anyone help me?
THanks so much for your time.
The error is caused by a model having incomplete information about the user: it is trying to access user 1293 group memberships, but it has no groupid available; also, the error would be easily preventable if the statement were written like this:
'... where groupid='.$db->quote($groupid).' AND memberid='. $db->quote($memberid)
That said, removing jomsocial entirely should get rid of it. Did you follow their upgrade guide which lists the plugins you need to uninstall? Search for the following strings in the plugin manager to find all:
joms
commu
zend
azrul
Else if you want to spot the error and keep jomsocial on your site, or should this procedure not get rid of the error, simply find the following strings in your site:
groupid
memberid
#__community_groups_members
the latter being easiest to spot with only 81 occurrences in the latest jomsocial version. I checked a few files, and many escape values properly. This means you can most likely solve by upgrading jomsocial to the latest version. If the error is still there it could be in a custom plugin / module / template, but it will show up in the search for the above strings.
I been using mysql 5.6 for a while now,
Sometimes when I make some changes in the procedure , table or function and try to save them MySQL refuses to save them and shows a error message like "No Changes detected". here I am not talking about changing cases or managing spacing. Even If I add some new column and add new condition in the procedure its unable to detect the change
Can anybody help me out with this MySQL bug
I have even upgraded to MySQL 5.7 but still problem persist.
I overcome this bug by removing the "DEFINER=root#localhost" part from the editor and then click on "Apply". It works 99% of times.
Eg: For a function or procedure, below is the declaration you see at top. Just remove the DEFINER string as described above and try it.
CREATE DEFINER=root#localhost FUNCTION/PROCEDURE
Since this is not a MySQL server error response, I assume you are trying to update your procedures with the MySQL visual tool workbench (http://www.mysql.com/products/workbench/)
I found bug reports on mysql.com pointing out similar issues. http://bugs.mysql.com/bug.php?id=68434
Those might be fixed with the latest version 6.0 of MySQL workbench.
If not, a possible workaround would be to drop and recreate procedures.
If you are using MySQL Work bench this means that the SQL script is identical to the copy in the database.
This generally happens for 1 of 2 reasons
Either the Files are Identical, or the script failed to parse as valid SQL and its has then defaulted to the original script. if you check the message log then the second one should say
Action:Apply changes to [scriptName]_SYNTAX_ERROR
Message:No changes detected
this can be confusing as the Commit Dialogue only displays the message not the action
I have deployed my play! application on http://www.playapps.net/.
All seemed to start OK but for some reason my queries are not working.
I have imported my script from local to their server and even I have the error:
Access denied for user 'play'#'localhost' to database 'da' (but it created my tables into their play schema there and imported my data).
Can this error be an issue for my not displaying data from DB?
Because I see no error in the logs.
Is here anybody who deployed app on this hosting solution and had this error also?
UPDATE: I've solved the above error, so now the import of my tables is done directly in play database. I log in with ssh user, open mysql console and I can see the tables.
But still, the query from my site is returning empty results. And locally it works perfectly.
Do I need any other configuration apart of this?
%playapps.application.mode=prod
%playapps.application.log=INFO
%playapps.db=mysql:play:play#play
%playapps.jpa.ddl=update
Very ugly situation.
My tables were not with capital letters. Play was looking for "Magazine" table (it created it but was empty) and I had also "magazine" table populated.
Maybe it will be useful for someone.
Ps: what was quite strange was that locally, on windows it worked.