PHPMyAdmin/MySQL Administration Help
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- PHPMyAdmin/MySQL Administration Help
PHPMyAdmin/MySQL Administration Help
17-08-2007 11:53 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
As I am a complete novice with PHP and MySQL can any one help or at least point me in the right direction regarding inserting a record/user into a MySQL Database. If there are instructions on how to do this what link would I need to follow?
I have just found out that when the Database and PHP files are uploaded the Database is only the shell and will not contain any data.
After going into PHPMyAdmin I see the Database shell which clearly states No records. I quess I will need to use the Insert Tab. However within this there appears to be two Databases, the second one appears to be repeat of the first one except that above there is a checkbox entitled ignore which is ticked. Do I enter my records in the first or second one?
Many thanks in anticipation.
Barry
Re: PHPMyAdmin/MySQL Administration Help
17-08-2007 4:02 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Once I know that we go to the next step.
Note: Most of the packages you can download have installation instructions so read then in full. Many have a php install page which you run which will create the necessary tables and populate the database if necessary so just follow the set-up/install instructions.
Re: PHPMyAdmin/MySQL Administration Help
17-08-2007 4:24 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
The package is EasyGen which has an export routine to upload into MySQL space.
I have been told though that it only uploads a DB shell, without data. Through MySQL Admin I have created two records. When I previed the project locally (localhost) everything worked fine. Now, live it will not accept my Password and Username which it should get from the records i created in the Db.
Many Thanks
Barry
Re: PHPMyAdmin/MySQL Administration Help
17-08-2007 4:28 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Does it not create a default login? Have a read of the manual and see what it says about putting the code on your webserver and what defaults it sets for you. Does the package allow you to create a login within it which can then be used on the webserver?
When adding records you may need to change the function column to PASSWORD or MD5 so it is encrypted in the correct way - the manual should state what encryption should be used. If you just see your password in plain text I suspect you need to store it encrypted.
Re: PHPMyAdmin/MySQL Administration Help
17-08-2007 5:06 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Yes the login page is created within the package, which runs fine locally.
There is not much within the manual that helps with regards to uploading to the webserver only that getting the mapping right is important ie going from Access to MySQL. It took ages to work this bit out but when I look at the code it seems to be correct in that it does not mention Access, or Provider=Microsoft.Jet.OLEDB.4.0 but I presume correctly refers to $eg_objConn1 = mysql_connect with all the passwords needed to connect to the server following that.
Not 100% sure what you mean by changing the function, but I can say that when I view the site live when the Password is entered it is asterisked out so I quess is OK. The only concern I would have though is that the other fields columns within the DB table at MySQL Admin have a property set as NULL, although the crucial ones ID, Username, Password etc are all OK, auto increment etc. I had assumed that all I would do is to create the first record through MySQL Admin then by logging on as the Administrator (live) would then be able to add further records.
Sorry for being so long winded.
Many Thanks
Barry
Re: PHPMyAdmin/MySQL Administration Help
17-08-2007 5:33 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
As I don't know the package you are using I can't really help much more.
Re: PHPMyAdmin/MySQL Administration Help
17-08-2007 8:46 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
At the momement the password is set to VARCHAR (10), from the drop down I do not have the option to set it to MD5 but I can set it to Password, which I have tried. When I do this though it generates an Error in SQL Query #1064. II'll try Googling the error code and see what I get). Incidentally all the other fields are set to VARCHAR either (10) or (50). The ID number is correctly set to Auto Increment.
You had mentioned in an earlier communication about other software packages being out there that did the same sort of thing as easyGen. Bearing in mind the issues I have been having, can you recommend one that might be a little less time consuming and a little more user friendly? (Or do all such packages have the same sort of issues?)
Again thanks for all your help.
Re: PHPMyAdmin/MySQL Administration Help
17-08-2007 9:42 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Portsmouth Hi
As I am a complete novice with PHP and MySQL can any one help or at least point me in the right direction regarding inserting a record/user into a MySQL Database. If there are instructions on how to do this what link would I need to follow?
I have to admit to not having been able to follow much of the subsequent discussion 😕 however I have no problems using php/mysql on the servers here, by means of (a) creating the db itself (just the shell), then (b) telnetting in whatever content I want in there (and finally (c) using php to call up whatever data is required, via cgi).
If the method I use (which took me a while to figure out by means of the help guides on the portal, usertools etc. plus a fair amount of trial and error) would be of interest, I'd be happy to post it up here.
If that isn't at all what you were looking for, just say

Regards,
Penny.
https://www.happychild.org.uk - FREE stuff for kids including huge Pokémon area and 50 Harry Potter wordsearch puzzles *
20,000 free worksheets (maths, languages, reading, spelling), accelerated learning + lots more * projects helping kids worldwide
Re: PHPMyAdmin/MySQL Administration Help
18-08-2007 9:36 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
In phpMyAdmin, select the table you added data to, then click the browse tab to view your data. Then tick the small box next to each of the records shown and click the pen icon at the bottom to edit the records. This takes you to a page to allow you to change the data. For each of the passwords, select PASSWORD or MD5 on the function drop down and save the change. Then see if you can login. If not, try the other setting.
You really need to read up on using MySQL and phpMyAdmin so go to their websites and download / read the documentation.
Re: PHPMyAdmin/MySQL Administration Help
24-08-2007 12:32 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Just thought I would post the solution to my previous problems. It appears that within the PHP script it was referencing
$eg_recResult1 = mysql_query("SELECT `easyGen_userDetails` etc etc.
Reading various forums this is case sensitive so I changed it to
$eg_recResult1 = mysql_query("SELECT `easygen_userdetails` etc etc.
And Bingo everything just worked.
Many thanks for all you help.
Barry
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- PHPMyAdmin/MySQL Administration Help