I'm learning SQL for the first time but I'm running into some problems. I purchased a book called "Learning SQL" (O'Reilly).
First off, the book asked me to download mySQL v6.0. I couldn't find it and the URL in the book redirected me to a download page for mySQL Community Server 5.7. I assume this is the latest version of the same package. I downloaded the installer and installed without any problems. Is this the correct software needed?
Then I tried following the instructions for the command line input, but it didn't work out. I downloaded an example sql database, but I'm having trouble importing it. Is there a guide available to do this?
Sorry if my questions are really newbish. Any help is appreciated. Thanks in advance.
If you want learn clean SQL - without any specials of Oracle Database, PL/SQL and something like that, then you can comfortably make it with any database what you find. :-)
Basic SQL is not dependent on any database software or their version.
Edit: If you have 2005 edition - it´s really independent on any SQL server.
Related
I am using MySQL DB for my android application. I have installed phpmyadmin on my Ubuntu LAMP server and using it to access my DB. Is there any possibilities to access the DB using MS access 2010, as I need to do perform modifications on a regular basis to my DB
If the aim is to change the data and not the structure, using MS access is a good solution, as you can edit anything in linked tables very efficiently with litlle setup efforts.
To achieve this, first you need to download and install the MySQL ODBC driver.
In order to avoid issues, I advise you to install the 32 bit driver, even if you're on a 64 bit system. The 32bit will work flawesly, which is not always the case of the 64 bit.
Once installed, open the ODBC control panel and add an entry pointing to your MySQL database
Then in Access you can add linked tables using this ODBC entry
Once the table are linked, they will behave as if they are MS access tables and you can open them and edit data, and much more.
You can use Microsoft Access as a front-end to your MySQL database.
Refer: MySQL Documentation
But for your case, directly accessing database is wrong. I suggest better you have a view page with php to update DB with proper required validations.
The answer by Thomas G does an excellent job of describing WHAT we need to do, and even provides some good links.
What we need now is a good, step-by-step description of HOW to accomplish all the steps Thomas G describes.
I've been looking for this for a long time, and still no luck. However, I'm possibly on the track of getting that answer, and if I find it, I'll come back here and post it.
I have started to learn how the CMS System Silverstripe works, because it uses OrientDB.
The moment I was installing it, there was asked me what database I used. My answer was MySQL.
SS created a MySQL database for me.
I'm really confused about it, because I taught it wouldn't use MySQL but OrientDB. So for me it looks that SS doesn't use OrientDB. Or is it possible that SS shall use OrientDB in the future? So does anybody can give me the name of a book that explains Silverstripe or can someone give me a basic explanation of it?
Thank you very much all! :)
The infrastructure requirements page for Silverstripe (http://doc.silverstripe.org/framework/en/installation/server-requirements) clearly calls for MySQL, PostgreSQL, or MS SQL Server.
The integration between Silverstripe and OrientDB appears to be a work in progress.
Could someone please help me with this. I would like to install the AWDB sample database to use with SharePoint 2010 on my Win7 dev system.
So SQL 2008 Express.
I have tried to download various things from codeplex, basically because I don't know the difference between the types. I have tried to look this up online in some blog posts but none of what I find/follow seem to work.
I think this is where I need to download what I need here, but I am not sure what I need exactly. At this point I am just trying to get the db in SQL right now, and I am maybe novice with sql at that point, but really just want to start experimenting with BCS in SP2010 anyway.
Any takers helping a rookie? Always appreciated! Thanks guys!
AdventureWorks2008R2-Full Database Backup.zip would be fine.
Then in SQL Express use:
restore database [database_name] from disk = 'backup path'
with move 'AdventureWorks2008R2_Data' to '<database_data_file_path>\<filename>.mdf',
move 'AdventureWorks2008R2_Log' to '<database_log_file_path>\<filename>.ldf'
We are converting our database to MYSQL from MSSQL 2005.
Someone told me this is possible by generating a script in MSSQL using Database Publishing Wizard. I already created a script. Then by dragging it to the Query Writer in MYSQL. I am currently using SQLyog for creation of database.
How can I use that script to create a MYSQL file?
I also tried to use demo versions of converting tools but to no avail.
Please help me. =)
There is no simple or quick way to do a task like this. THe two database have differnt syntax and differnt datatypes, etc. I certainly would not trust a converting tool as you may want to make changes to fix bad design choices in SQL server to better choices in MYSQL.
Take your script and then run each section and find where it fails and then look up the correct syntax for mySQL and fix it.
Here is alink to a book you need to have for this conversion project as it wil show the syntax differnences:
http://www.amazon.com/SQL-Nutshell-OReilly-Kevin-Kline/dp/0596518846/ref=sr_1_2?s=books&ie=UTF8&qid=1330382519&sr=1-2
I've heard from some people that RoR doesn't marry cleanly with SQLServer. We are being pushed to use SQLServer for historical and standardization reasons but if we can push back with valid reasons we can move to another db. One person on the team wants MySql and another wants Postgres, etc. I'm trying to stay out of the religious wars and really understand what the pain point is with SQLServer.
We're running the app server on a linux box, and the database will be on a windows box and the SQLServer that we're supposed to standardize on is 2008, if those details help any...
thanks in advance!
I am not very familiar with such configuration but.. There are some question you should (I think so) ask yourself and team.
Is there any significant advantage for your project of using SQLServer?
If yes ... Is it so overwhelming that you are ready to face some difficulties with odbc drivers such as: http://groups.google.com/group/rails-sqlserver-adapter/browse_thread/thread/6d35d4a53ac210b2
Are you ready to host so many configurations of this boxes (linux+windows) for development, staging and production?
Do you have got professional of SQLServer in your team? (backups and administration)
If you cannot get positive answers for this questions I think SQLServer could be very hard to maintain for RoR project. Still it doesn't mean it is not possible. But sometimes you must ask yourself why you should use saw to driving nails when you have got hammer at your left.
I am successfully using Rails (version 3 to latest) with SqlServer in production for many years.
You can use https://github.com/rails-sqlserver/activerecord-sqlserver-adapter which recently upgraded to support latest SqlServer/Azure for Rails 5.2.