Migrating SQL Database, Capatilized fields - mysql

So I have a point of sale software that is using WAMP Server locally. Ive set up a Ubuntu server with MySQL. I'm trying to move the sql server on wamp from the windows machine to the ubuntu machine. Everything imports fine. But the original database fields are all lower case and for some unknown reason it seems my point of sales is looking for uppercase fields. I dont really understand whats happening.
All I know is that if i import the sql file into the unix system, and point the pos software at the sql db it says that it doesn't detect the database and then trys to recreate the fields with capital titles.
Any input would be greatly appreciated.

Take a look at this: Why my tables' names are converted into lowercase in phpmyadmin?
You need to change your configuration so lower_case_table_names is 0.

Related

Convert large SQL Server database to MySQL database

I am trying to migrate a SQL Server database to a MySQL database.
I tried doing same using MySQL Workbench but for some driver related reasons, I am unable to have it work for me.
I also tried online converter tool , http://www.sqlines.com/online
This works fine but I have to manually copy paste 5000 lines every time and convert and again do for next 5000 lines. This is too tedious as my SQL Server database is approx 10GB. Also text editors crash while opening this huge SQL Server file containing exported data.
I need smarter and accurate way possible.
Please help. Thank you.

Best approach to working with multiple developers and databases

I've been working on a project for a couple of months now with a few other developers and it has got to the point where we all have different changes to the DB we are working with, but all of the changes are local, meaning the server is out of sync with all of our local changes.
What is the best way to handle this? At the moment I tried to basically export my database from my local PC with phpMyAdmin and import that .sql file into the database on the server but as some of the tables already exist on the server it just gives out an error...
Would I have broken my database on the server by trying to import that sql file?
What do I do?
Ok so here's what I would do in your position...
Use this tool: http://www.clevercomponents.com/downloads/dbc/dbcdownload.asp
With the database compare tool, it should identify the differences in structure between two databases.
This generates an SQL file which will alter the target (your server) database to match the master (your local).
Always backup your target database before attempting something like this, just in case it goes wrong.

MySQL Workbench - migration of the data doesn't work

I'm trying to do a migration through MySQL Workbench, from one server to another. It sets the schema okay, but when it comes to the data, it fails. It doesn't give me much information either - the output resembles this:
`schemaname`.`GeneralCodes` has FAILED (0 of 3 rows copied)
That's all it says. Can anyone point me in the right direction?
I found out what the "The network name cannot be found" message meant, at least. I was using the network at work to store my dump files, as in "\\myserver\horndinkle\dumps\xxx". It was referring to that, that MySql Workbench couldn't read from there, not the network name I was migrating to/from. Once I put the file on my local machine, it worked just fine.

connect R to MySQL with RODBC using dsn

Short version: I'm trying to figure out how to use the dsn argument in the odbcConnect() function to connect to a MySQL database.
Longer version: I appologize if this is an ignorant question. I didn't find an answer on SO searching under the tags. I'm not new to R, although I'm not the world's foremost expert. I am new to MySQL. I have been trying to learn it on my own.
I would like to be able to create tables and such in R and write them to a database in MySQL and then be able to select from them later and read the selected records back into R for analysis. I can create a database in MySQL, select, export a text file, & read that file into R now, but I would rather be able to do everything from R. For this purpose, I installed RODBC to be able to connect R to MySQL directly. I understand that I need to use the odbcConnect() function, but I do not understand what to put for the dsn argument to do this, and haven't been able to figure it out from the wiki or the help file.
Details (if needed):
I did not establish a uid or password when I set up MySQL
Versions used: Windows XP; R 2.10.1; MySQL 5.5
Locations of exe files: C:\Program Files\MySQL\MySQL Server 5.5\bin
C:\Program Files\R\R-2.10.1\bin
I expect I need fairly basic advice--e.g., it might be best to assume I don't even know what dsn stands for (even though that's not actually true). Any help is appreciated. Thanks in advance.
The simplest solution I can suggest would be installing RMySQL. This will give you native connectivity to the MySQL database that you are using.
If you want to use ODBC besides needing to have the MySQL ODBC drivers you will need to set up the ODBC connection in the ODBC manager on Windows XP. When you go through the connection it will ask you for a name, which will be your DSN name, which then you should be able to use in odbcConnect()

Query SQL Server from SPSS how to connect

I am at a total loss on how to do what I think is a fairly simple and standard task:
I am running SPSS 20 on Mac and want to connect to a SQL Server database on a remote server.
When going to File -> Open Database -> New Query (The command names may be a bit off, my SPSS is in German and I'm just translating) it only shows myodbc as data source. I assume I have to add a driver for SQL Server however I donĀ“t really know where to get it or how to install it as I cannot find it in the SPSS installation at hand. Anyone can help me out?
Thanks a lot in advance!
The Data Access Pack is available with your Statistics installation (may be a separate download), and it contains drivers for most major data sources.
It looks like IBM doesn't include (or make!) the drivers for Mac installations. Check it out:
http://www-01.ibm.com/support/docview.wss?uid=swg21480987
You have to buy them separately. For example:
http://www.actualtech.com/download.php