Welcome Guest ( Log In | Register )



2 Pages V   1 2 >  
Reply to this topicStart new topic
> Mysql - So Hard, Come in here if you think MySQL is soo hard!
Rating 4 V
Cain
post Apr 1 2008, 11:52 PM
Post #1


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 14
Joined: 29-March 08
Member No.: 29,457



Doesn't anybody think MySQL is so hard to code?

I mean think about it, you need loads of databases just for one little script and you have to type things in like


<MySQL>
;Host-Username: (blahblah)
;Host-Password: (blahblah)
;Host-DatabaseName: (blahblah)
</MySQL>

Ok, that MySQL code was random, and it is alot harder than that.

If you have expierenced it being hard, you are free to post right in here, mate.
Go to the top of the page
 
+Quote Post
Jimmy89
post Apr 2 2008, 02:10 AM
Post #2


Living at the Datacenter
Group Icon

Group: [HOSTED]
Posts: 696
Joined: 30-June 06
From: Australia
Member No.: 14,219



All codes are hard to begin with. I remember when I first started trying HTML. It was driving me crazy trying to remember everything. Now, I can do it in me sleep!

If you are finding it hard, I suggest reading a book that got me started on MySQL. PHP and MySQL for Dummies is a very easy to read book with good examples and will get you started on MySQL Programming. It also includes PHP so you can start making your own websites.
Go to the top of the page
 
+Quote Post
Quatrux
post Apr 2 2008, 01:26 PM
Post #3


the Q
Group Icon

Group: [HOSTED]
Posts: 982
Joined: 13-July 05
From: Lithuania, Vilnius
Member No.: 7,059



MySQL is easy, for simple stuff, it is very easy even to understand what it does, but when you're getting more advanced with mysql, you see that things can get complicated, especially when you have a fancy database, with joins, dependencies and etc. when writing sql querys is quite hard, but then again.. when you get a lot of knowledge with sql, mysql can get even more easier biggrin.gif

@ Jimmy89

Yeah, HTML in the early days seemed quite interesting, so much things to do, but now when you open some source, it's quite readable, if it's written normally, with tabs and etc. smile.gif Some guys I know, opens the source and says "oh, it seems so complicated, so much tags and characters, this is really a pro work" and when I look at it, it's just simple html, some css and some javascript biggrin.gif I am talking about friends in University, who doesn't do any web stuff and similar. smile.gif
Go to the top of the page
 
+Quote Post
Miles
post Apr 2 2008, 02:33 PM
Post #4


Advanced Member
Group Icon

Group: [HOSTED]
Posts: 177
Joined: 25-December 07
Member No.: 27,129



Most languages are hard at first, lingual or programming, but once you've learnt the basics, you can do anything. And for learning the basics of MySQL, I recommend W3Schools, and of course tizag, both of which I used a lot when I was learning php and mysql.
Go to the top of the page
 
+Quote Post
yordan
post Apr 2 2008, 08:12 PM
Post #5


Way Out Of Control - You need a life :)
Group Icon

Group: [MODERATOR]
Posts: 1,886
Joined: 16-August 05
Member No.: 7,896



Don't be confused.
Don't mix the database, which manages the data, and tle php program, which is a way of making a computer do things for you.
Mysql by itself is a database, it's langage is SQL, which is a very simple language. The sql language started from a very simple idea, that data should be organized in such a way that they could be queried using a language very close from the natural language (the "natural language" being obviously the English language).
The SQL language, which is the mysql language bug also the Oracle or the Informix or the Ingres language, uses very simple sentences like :
select * from people where name like "John";
or :
insert into people values ("John", "rich", "stupid");
or
delete * from people where quality="stupid" ;
It become more complicated if you want these things to be done by a program, but the complication is coming from the php syntax (if you use php) or even the visual basic syntax if you refer to the last visual basic tutorial at astahost forum.
So, don't mix the database concepts, wich are relationnal ways of organizing the data, with the programming language learning, which is hard for beginners but will seem very simple for you after a couple of weeks/months/years
Go to the top of the page
 
+Quote Post
Darasen
post Apr 7 2008, 03:38 PM
Post #6


Member - Active Contributor
Group Icon

Group: [HOSTED]
Posts: 97
Joined: 3-April 08
From: Milling about
Member No.: 29,596



QUOTE(yordan @ Apr 2 2008, 04:12 PM) *
Don't be confused.
Don't mix the database, which manages the data, and tle php program, which is a way of making a computer do things for you.
Mysql by itself is a database, it's langage is SQL, which is a very simple language. The sql language started from a very simple idea, that data should be organized in such a way that they could be queried using a language very close from the natural language (the "natural language" being obviously the English language).
The SQL language, which is the mysql language bug also the Oracle or the Informix or the Ingres language, uses very simple sentences like :
select * from people where name like "John";
or :
insert into people values ("John", "rich", "stupid");
or
delete * from people where quality="stupid" ;
It become more complicated if you want these things to be done by a program, but the complication is coming from the php syntax (if you use php) or even the visual basic syntax if you refer to the last visual basic tutorial at astahost forum.
So, don't mix the database concepts, wich are relationnal ways of organizing the data, with the programming language learning, which is hard for beginners but will seem very simple for you after a couple of weeks/months/years


To nitpick just a tiny bit MySQL is an RDBMS, Relational Database Management System. That said MySQL in and of itself can be fairly basic too extremely complex contingent upon the scope and scale of the database in question.

It is important to distinguish the DB from PHP or what ever language you use. Starting with a solid data model is huge benefit. Having a good grip of ANSI SQL is also very helpful. Thusly my suggestion tends to be to learn what exactly the RDBMS does, what a data model is, then some good SQL. At that point jumping unto PHP is far simpler.
Go to the top of the page
 
+Quote Post
wutske
post Apr 8 2008, 01:22 PM
Post #7


Super Member
Group Icon

Group: [HOSTED]
Posts: 972
Joined: 2-August 05
From: Kapellen (Antwerp, Belgium)
Member No.: 7,585



First of all, don't confugse the database with the language; MySQL is a freely available database application that you can access using the Structured Query Language (SQL). Working with SQL-databases can be very easy, it goes from:
CODE
select * from books

to
CODE
select count(*) AS 'aantal', author.name, publisher.name from books inner join author on author.ID = book.authorID, inner join publisher on publisher.ID = books.publisherID group by author.name, publisher.name where books.publisherID = (select publishers.ID from publishers where publishers.name = 'Van In') having count(*) >= 10

and more complex stuff that I don't know (yet) tongue.gif . But in fact it's rather easy, just install a database application, learn how to create tables, fill them with data and try some codes, everytime a bit more complex, one step at a time wink.gif .
Go to the top of the page
 
+Quote Post
Doc.h0llyw00d
post Apr 8 2008, 02:04 PM
Post #8


Newbie [ Level 2 ]
Group Icon

Group: [HOSTED]
Posts: 18
Joined: 22-March 08
Member No.: 29,297



QUOTE(wutske @ Apr 8 2008, 09:22 AM) *
But in fact it's rather easy, just install a database application, learn how to create tables, fill them with data and try some codes, everytime a bit more complex, one step at a time wink.gif .


This is more true than I could probably explain. The only way to understand fully the possibilities of SQL is to play with it. An easy idea to start is to create a database that manages your finances. exclude hard parts to begin with (interest compounding, etc) and focus on just writing a script that withdrawls, a script that deposits, one that transfers money, maintain that database and expand it as you find new things to include. This should give you a general understanding of tables (their properties, how to create and maintain them (select, insert, delete, update statements), as well as queries (select, union, join statements), and when you create functions (scripts etc) you should find yourself a bit more familiar with the concept as it is pretty much the same as writing functions in any other programming language (different syntax of course). From there if you actually LIKE the program you've made (most people do, everyone takes pride in things they make) you could try to automate it by learning about triggers as well as importing data directly from your bank statements (most banks support downloading of records in CSV, Comma Separated Value, format).

Just a thought, I have some ideas for other SQL projects that are easy for beginners if you are interested in learning.

Regards,
the Doc.

P.S. as another note, if there are a decent amount of people that are interested in learning about SQL we could try to get a project going and have a few contributors to maybe make some sweet software. A lot of great programmers started writing code with their buddies online or in a garage.
Go to the top of the page
 
+Quote Post
yordan
post Apr 8 2008, 04:58 PM
Post #9


Way Out Of Control - You need a life :)
Group Icon

Group: [MODERATOR]
Posts: 1,886
Joined: 16-August 05
Member No.: 7,896



QUOTE
An easy idea to start is to create a database that manages your finances.

And first of all only use phpmyadmin or pure sql in order to create the tables and populate them and start simple queries (select * from mymoney where date < '01/04/08') in order to get familiarized with the SQL syntax first, then create a php program which reads your input from keyboard and then fires the very simple sql query (select sum(money) from mymoney;)
Go to the top of the page
 
+Quote Post
ahaslam
post May 14 2008, 05:03 PM
Post #10


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 24
Joined: 14-May 08
From: uk gb
Member No.: 30,333



it's hard at first but you get use to it
now it's easy peasy but its hard when it dosnt work lol tongue.gif data bases are easy in theend as long as you have all the pass words host address ect. biggrin.gif rolleyes.gif
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. MySQL Realtime Replication(3)
  2. Error In Installing MySQL Server(6)
  3. Recover Tables From A MySQL .frm File(6)
  4. Mirror My MySQL Database To Another Mysql Server(4)
  5. How To Connect MySQL With Flash?(8)
  6. MySQL, Multiple Tables(22)
  7. Access -> Mysql(8)
  8. Is It A Good Practice To Store Image Or Other Binary Files Directly In A Mysql Database(4)
  9. Navcat For MySQL(7)
  10. Permission Problem With Mysql Database Creation(8)
  11. Mysql And Php(15)
  12. Problems With Php Saving Data Into Mysql(6)
  13. Login System Using A Mysql Db(4)
  14. What Is Mysql With Mysqli(6)
  15. Can I Use Openoffice Base To Connect To Mysql?(1)
  1. Mysql Question...(6)
  2. Oracle Vs. Mysql Vs. Postgresql(9)
  3. Installing Mysql?(17)
  4. Mysql Query Question(3)
  5. Lost Connection To Mysql ,..., System Error: 111 In(3)
  6. Subqueries In Mysql(1)
  7. Apache Php With Mysql On Windows [solved](9)
  8. Not Understanding Mysql(4)
  9. Mysql Script Help(3)
  10. Mysql Problem(1)
  11. Sun Bought Mysql(6)
  12. Mysql Backup With Another Address?(4)
  13. I Have An Error With My Mysql Connection(7)


 



- Lo-Fi Version Time is now: 7th July 2008 - 01:19 AM