Cain
Apr 1 2008, 11:52 PM
| | 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. |
Comment/Reply (w/o sign-up)
Jimmy89
Apr 2 2008, 02:10 AM
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.
Comment/Reply (w/o sign-up)
Quatrux
Apr 2 2008, 01:26 PM
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  @ 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.  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  I am talking about friends in University, who doesn't do any web stuff and similar. 
Comment/Reply (w/o sign-up)
Miles
Apr 2 2008, 02:33 PM
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.
Comment/Reply (w/o sign-up)
yordan
Apr 2 2008, 08: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
Comment/Reply (w/o sign-up)
Darasen
Apr 7 2008, 03:38 PM
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.
Comment/Reply (w/o sign-up)
wutske
Apr 8 2008, 01:22 PM
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)  . 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  .
Comment/Reply (w/o sign-up)
Doc.h0llyw00d
Apr 8 2008, 02:04 PM
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  . 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.
Comment/Reply (w/o sign-up)
yordan
Apr 8 2008, 04:58 PM
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;)
Comment/Reply (w/o sign-up)
ahaslam
May 14 2008, 05:03 PM
it's hard at first but you get use to it now it's easy peasy but its hard when it dosnt work lol  data bases are easy in theend as long as you have all the pass words host address ect.
Comment/Reply (w/o sign-up)
darkken
Jul 2 2008, 10:07 PM
Just remember it is just hard to think in terms of DBs. Once you get the hang of mysql it becomes really easy. Just learn sql language a little bit and the rest comes easy. If you consider php to handle mysql i would also consider using phpMyAdmin. It works great for creating and managing tables so you can query them later.
Comment/Reply (w/o sign-up)
sparkx
May 25 2008, 03:28 PM
Actually to be honest I thought MySQL was pretty easy. Simply connect to a database then you can get all the results simply by using an * and arraying the tables. The only trouble I have ever had (and I’m still having so if you have an answer please tell me) is connecting to a MySQL server from an external location for example a clients download. Other then that I had no problem learning MySQL. You should use this site if you need help with it: here. It is very simple and good to use just for documentation purposes or if you forget the format of something. The only thing to watch out for is MySQL injection or hacks. I believe the website above has a basic solution for them if you are using PHP. Good luck at learning MySQL and don't forget it is less complicated then you think. By the way one nice thing about MySQL is that it is almost identical in every language ex PHP, Java and C++. Sparkx Also wutske I have never seen a MySQL code that complicated... I wish I would have known about the sooner, probably would have made my life a lot easier then when I was trying to loading two or more tables with lots of statements (that was fun...). yaoersd just a suggestion, try making longer posts, they look better on hosting applets.
Comment/Reply (w/o sign-up)
Yaoersd
May 25 2008, 02:54 PM
You will get used to it...
Comment/Reply (w/o sign-up)
docduke
May 17 2008, 12:20 AM
SQL is actually a very interesting, if old, computer language design. Borrowing from Wikipedia: QUOTE During the 1970s, a group at IBM's San Jose research center developed the System R relational database management system, based on the model introduced by Edgar F. Codd in his influential paper, A Relational Model of Data for Large Shared Data Banks. Donald D. Chamberlin and Raymond F. Boyce of IBM subsequently created the Structured English Query Language ... Note the word shared. If you ever need an environment with really large bandwidth servers, you will be glad you use something based on SQL. It is designed to minimize the data transfer between the database and the requesting computer. In 1989, my wife was working on a Master's in Computer Science, and she jumped at the opportunity to go to a seminar given by Codd. He had just come out with a new book. He was famous in her circles for Codd's 26 Rules of relational database design. She heard he had added a few rules. She wondered, "Was it 30, maybe 36?" It turned out to be 126, and the talk was one of the more opaque she attended (No connection to OpaQue!  ) Anyway, the bottom-line message is that SQL has been thoroughly studied, and optimized in an environment where data transfer is costly. It is worth using, and MySQL makes it free and easy!
Comment/Reply (w/o sign-up)
Similar Topics
Keywords : mysql, hard, mysql, soo, hard
- Login System
I want to make a login system using Mysql. I am amateur in these thing (12)
Mysql Overhead
(3) Sometimes in a table especially if i do alot of things in it i start seeing overhead then a size
near it? what is overhead? and is it essential to optimize the table to fix it? I know its just a
press of a button but i'd like to know what happens when i optimize a table. Also when you make
a new table you can limit the size of VARCHAR to a number, that number would be the number
characters allowed in that column per entry. I'd like to know how the limit works for texts, is
it in KB? or number of characters? Cuz i made a messaging system. And i remember reading s....
Mysql Multiple Tables
(3) It is good practice to use multiple tables to sort out big amounts of data. But once you do that it
becomes increasingly hard to cross reference the tables. Mysql has a little beautiful command
structure that they have added. You can select multiple tables within one sql query. Example of a
basic sql query CODE $sql = "SELECT * FROM table WHERE row=1"; If you noticed that I selected
all of the rows in the table. Normally you will try to not select the entire table from the database
unless you absolutely want all of the table. I would recommend against it; just gra....
Any Website Provide Free Host Mysql Host?
(4) any website provide free host mysql host? i need it because i am using 000webhost.com now but it
only provide 2 mysql database... can i know where or how can i get more databases regards....
Mysql On Computer
XD (9) I posted PHP on computer? , but for some reason it doesn't show :/. Anyways I am wondering if
there is MYSQL on my computer, meaning can i make a data base on my computer? that way i make what i
want and upload it when i get hosted =)....
Mysql Database Entry By Excel Sheets
(2) Hello .. I would like to ask if i can use use Microsoft excel files in order to make entries to
mysql database. Thanks....
Mysql Database Management
(1) Hi i am new, I have a problem in understanding the query decomposition in D-DB. Can anyone help me
to understand the first question of the exercise 25.21 of Elmasri-Navath 4th edition? Consider the
following relations: BOOKS (Book#, Primary_author, Topic, Total_stock, $price) BOOKSTORE (Store#,
City, State, Zip, Inventory_value) STOCK (Store#, Book#, Qty) Consider a distributed database for a
bookstore chain called National Books with 3 sites called EAST, MIDDLE, and WEST. Consider that
BOOKS are fragmented by $price amounts into: B1:BOOK1:up to $20. B2:BOOK2:from ....
Mysql And User File_priv
(0) HI, I've hit the grain while trying to import file to mysql database - I need to enable file
permissions of the database user but this seems not possible with most of the hosting providers.
The problem is to set file_priv of the database user to "Y" . This is done in the "user" table of
the maintanance database named "mysql". cPanel doesn't allow this. Via the cPanel you can only
allow privileges on table querries but you cannot grant host file privileges to the database user -
which makes querries like: "LOAD DATA INFILE 'filename' INTO TABLE tablen....
I Have An Error With My Mysql Connection
mysql connection error (7) ok so here's my web page... http://lacrossems.t35.org/ it only lags cause its trying to
connect to the my sql server...i followed this guide
http://forum.ragezone.com/showthread.php?t=387249 and when i edit my config.php to my host and
login info i always get the error cannot connect to the database here is my config.php if you can
help me CODE $host = 'CENSORED'; // my host $host =
'righto'; // my database username $host = 'CENSORED'; // my database
password $host = 'odinms'; // my datab....
Mysql Backup With Another Address?
(4) I just got my site hacked!! (don't worry because it is not on astahost) Actually it is a
wordpress blog. So I backed up my MySQL Databases with cpanel. Now when I get my hosting approved
here at astahost, can I restore those backups? Is the change of the site address going to interfere
with this? Is there anyway I can edit those databases to work with my new address? Please help me
out here!....
Sun Bought Mysql
(6) SUN bought the swedish company MYSQL for much money, around 2million each worker got in the company,
they did it to come in to the database market, is it a good reson to buy it?....
Mysql Problem
Linking tables (1) Hello guys, I'm making a PHP/MySQL site for a friend of mine who plays an online game where you
can create towns, add buildings to them and upgrade them to a newer level. I've offered to make
him a small site where he can input his data into a database and keep track of his towns, buildings
and levels. I'll show you my database design and then explain what i want to do. Table: towns
field 1: TownID (primary key, auto-increment) field 2: TownName field 3: TownType field 4: Town
Description Table: buildings field 1: BuildingID (primary key, auto-incremen....
Login System Using A Mysql Db
How do i do this? (5) Hi guys, ive got a registration system that looks something like the one below: Firstname:
Lastname: Then i have inset.php, which looks like the following: $con =
mysql_connect("localhost","autobot","abc123"); if (!$con) { die('Could not connect: ' .
mysql_error()); }mysql_select_db("my_db", $con);$sql="INSERT INTO person (username, password) VALUES
('$_POST ','$_POST ')";if (!mysql_query($sql,$con)) { die('Error: ' .
mysql_error()); } echo "1 record added";mysql_close($con) ?> Now my question is, how do i creat....
Mysql And Php
When trying to install Joomla (16) I don't know if this is the correct forum, but here is my question: I'm trying to test
Joomla and some forums in my computer, I have already installed MySQL with the GUI tools, Apache,
and PHP with the MySQL and MySQLi extensions, but when I'm trying to install Joomla I get this
error: Required Settings Check: ------------------------------------- PHP version >= 4.1.0
Yes - zlib compression support Available - XML support Available - MySQL support
Unavailable configuration.php Writeable Session save path Unwriteable Not ....
Permission Problem With Mysql Database Creation
Please Help! (8) I seem to have a problem with accessing my database with proper permissions. I have set the my
database correctly giving my db username all priviliges yet i seem to be unable to even log on with
this username with a denied access error. Any ideas on resolving this?....
Navcat For MySQL
is Navcat any good? (9) Hello all, i ve recently come across NavCat (GUI tool) for MySQL. I have not bought a copy yet, just
played around with the demo. Has any one used it beore, if so please let me know if its worth
buying. I already have PhpMyadmin, Just wanna know if NavCat is better than PhpMyAdmin in usibility
and functionality. Regards....
Is It A Good Practice To Store Image Or Other Binary Files Directly In A Mysql Database
(6) Hello to all of you beautifull people out there, I am new to MySQL, i just wanted to know if its a
good practice to directly store images and other binary files in a MySQL database. Any one with
help? Thanks....
MySQL, Multiple Tables
(27) Ok, I'm coding a project which is a leap than what I'd normally do. Before, I've always
learned ONE table... put EVERYTHING in one database table. I'm making a profile system so there
needs to be at least two tables: 1 for users, 1 for content. My problem is, how do I link the two
together? I could probably figure this out faster if someone explained and posted sample SQL code
that shows how the two are linked together. Thanks!! F....
MySQL Output Database Question
(19) I am new to MySql and have just created a database after using a script. My problem is not the
script, but what it says about putting it into the output file. I cant figure out the right terms
to put it in, I keep getting errors. I try using; SELECT*FROM 'database name' WHERE
'location' but it isnt working. I'm lost with this stuff, I really am. Can someone
please help me out?....
MS-database To MySQL
I'd like to batch them (6) Hi, maybe one of you already came across this, so I ask. I'll continue searching on. I've
got two vocable trainers, one is Windows-native, the other one is on the web. While I can't
control the output of the Windows-thing (so I can't export them to a *csv or something), I can
write an import script. But since I'm not that great with Regular Expressions and don't know
anything about *.mdb (that is MS SQL, isn't it?) files, I would need some finished thing to make
out the field information and put it in arrays or something more readable. It wou....
What Are The Alternatives To MySQL
(7) Hi. i'm interested in alternatives to MySql combined with php. what database else can i use to
create a webbased managment system with a lot of entries. maybe more than mysql can handle fast
enough. it should be more powerful than mysql and should have nearly the same features. i hope
there is a webbased administration program like phpmysqladmin thanks for your help ! greetings c.....
How To Connect MySQL With Flash?
Help me connect my flash Work with MySql (8) I know Flash and mysql but could not figure out if I could ever connect these? I want to have a
dynamic content in my flash object that could be retrieved from the database directly without myself
needing to update it again and again. How can I achieve this ? Do I have to install any additional
controls or connectors to do that ? If yes any one tell me....
Mirror My MySQL Database To Another Mysql Server
(7) Hi..I want to ask if its possible to automatically mirror my mysql databases into another mysql
server?or create a small php script to do this? The reason is because, we all know that database is
very improtant if we have dynamic website. I have my forum hosted and i want to automatically
mirror this or backup into another mysql server(free). Like in freesql.org. So that im not afraid
that i forgot to backup my database..also i have one central backup database. Thanks for the
help..Im looking forward for this posibility.....
Recover Tables From A MySQL .frm File
(9) I have a couple of .frm files with no corresponding data or index files. Is it possible to recover
the table structure (field names, types, sizes, rows,col, etc) from these files? The table type is
innodb....
MySQL Database Problems
(8) My friends have a little forum running here . The problem is that quite often we get the following
message when we try to open the page: QUOTE Warning: mysql_connect(): Can't connect to
local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in
/home/vhosts/rohit.bizhat.com/forums/db/mysql4.php on line 48 Warning: mysql_error(): supplied
argument is not a valid MySQL-Link resource in /home/vhosts/rohit.bizhat.com/forums/db/mysql4.php on
line 330 Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in
/home/vhosts/roh....
Error In Installing MySQL Server
MySQL server cannot be started (9) I try to upgrade my MySQL server from 4.018 to 4.1.10a. Firstly, I downloaded mysql-4.1.10a (not the
essential one) for win XP Then I install the new version after the old version was uninstalled.
After the installation process, Instance Configurator comes up to help for the configuration. But an
error occured when it try to start the MySQL service. Error messageis "cannot create windows
service for MySQL. Error:0" So my MySQL server cannot be started. It is running win XP on my
computer. Does anybody can tell me what is wrong?. Thanks (sorry for my bad english)....
How Can I Import Csv Files To My MySQL Database?
I was able to export but where's import? (3) I am having hard times finding that import csv in the mysql phpmyadmin. I once worked on some csv
files and someone imported it on the mysql server. I was not able to ask him. Does someone know how
can I import csv files in mysql server?....
MySQL Datetime --> VB.NET Datetime Conversion Prob
Any solutions ?? (4) Hi, Can anyone provide me with a quick example of fetching a MySQL Datetime Field and converting it
into native VB.NET DateTime format ?? Say for example my db contains a couple of fields: Field1,
Field2, DateField... one of which is the default MySQL DateTime. Say I'm using the following
code to connect... CODE ConnectionString = "....." QueryString = "SELECT * FROM SomeTable" Dim
myConnection As New MySql.Data.MySqlClient.MySqlConnection(ConnectionString) Dim myCommand As New
MySql.Data.MySqlClient.MySqlCommand(QueryString, myConnection) Dim myReader As MySq....
MySQL Realtime Replication
how to replicate mysql in realtime (4) i dont know if this might be useful to ppl here, but this is a very good knowledge for serious
siteadmins. while i was digging for mysql backup techniques, i've found that mysql is able to
do realtime replication. the idea is that there are master server and slave server. both are having
the same version of mysql installed. the data flows; Master >copy> Slave ( in realtime!)
you'll never have to manually copy the database file of wasting your time to manually use the
mysqldump command. here are the links; http://dev.mysql.com/doc/mysql/en/Replication_HOWTO.h....
MySQL - Trouble With Bulk Insert Statements
(3) I'm trying to insert about 500 rows into mysql, but I keep getting errors. If I copy and paste
too many (about 50) insert statements at a time I get errors sometimes. I sometimes even get errors
but then the row is skipped so I don't know there was an error (I'm using linux and SSH).
What's the best way to get my insert statements to put the data in MySQL? Is there anyway that I
can have it tell me if there where any errors all the statements are executed? Thanks for your
help.....
Looking for mysql, hard, mysql, soo, hard
|
See Also,
*SIMILAR VIDEOS*
Searching Video's for mysql, hard, mysql, soo, hard
|
advertisement
|
|