Ask a Question related to MySQL, Design and Development.
-
Dave Moore #1
phpMyAdmin MySQL proble,
Hi All,
I'm putting a website together using PHP and a MySQL database. I've been
using phpMyAdmin as it makes updating the DB nice and easy. For development,
I've been using Apache, MySQL and PHP installed on my local machine but now
I'm having problems porting to my hoster's server.
To transfer the database contents, I've exported the structure and data of
my local DB to a .sql file and uploaded this to my hosted DB using
phpMyAdmin on the host. This seems to work, but there are two problems:
1). Firstly, the MySQL PASSWORD() command give different results on the host
than it does on my local machine. For example, using phpMyAdmin on my local
machine, typing:
SELECT PASSWORD ('mypassword')
gives a 16 byte number as my books suggest. However, running the same
command on the server gives a 41 bytes code!!!. Consequently, all my login
functionality does not work!.
2). Secondly, I noticed that phpMyAdmin on the host shows a 'Collation'
column with the value 'latin1_swedish_ci'. This column isn't present when
using phpMyAdmin on my local machine, even though the DB contents show be
identical. So what's that all about??.
Thanks for any comments,
Dave
Dave Moore Guest
-
Importing DB using MySQL, PHPMyAdmin
I've read a lot of posts on how to do this, and so far, it seems the most popular ideas are: 1) Use the MyODBC to run the import via ODBC... -
Hosting Company CF/MySQL/Phpmyadmin
Hello, My current hosting company continues to cause problems for me when there servers HD space reaches capacity and I go to save a file and lose... -
phpMyAdmin and MySQL
I have a web host with PHP my Admin and mySQL. Can anybody give me an instruction how to make a sample database and access it? -
#26208 [Opn->Fbk]: phpmyadmin-2.5.4 + mysql-4.0.15 = crash
ID: 26208 Updated by: sniper@php.net Reported By: temnota at kmv dot ru -Status: Open +Status: ... -
Problems with phpMyAdmin and mySQL
I have looked for other groups to assist but the only mysql group I could find is a german one, I am trying to set up a control user on mysql to... -
Rauch Christian #2
Re: phpMyAdmin MySQL proble,
Dave Moore schrieb:
Your hoster has a newer MySQL version than you have. If you want to use> Hi All,
> I'm putting a website together using PHP and a MySQL database. I've been
> using phpMyAdmin as it makes updating the DB nice and easy. For development,
> I've been using Apache, MySQL and PHP installed on my local machine but now
> I'm having problems porting to my hoster's server.
>
> To transfer the database contents, I've exported the structure and data of
> my local DB to a .sql file and uploaded this to my hosted DB using
> phpMyAdmin on the host. This seems to work, but there are two problems:
>
> 1). Firstly, the MySQL PASSWORD() command give different results on the host
> than it does on my local machine. For example, using phpMyAdmin on my local
> machine, typing:
>
> SELECT PASSWORD ('mypassword')
your scripts, replace PASSWORD through OLD_PASSWORD.
See [url]http://dev.mysql.com/doc/refman/5.0/en/password-hashing.html[/url] for
more information.Leaving 2 for the others due to lack of knowledge ;)>
> gives a 16 byte number as my books suggest. However, running the same
> command on the server gives a 41 bytes code!!!. Consequently, all my login
> functionality does not work!.
>hth,>
> Thanks for any comments,
> Dave
>
rauch
Rauch Christian Guest
-
Dave Moore #3
Re: phpMyAdmin MySQL proble,
Thanks Rauch. That explains a lot.
"Rauch Christian" <info@rauch-webdesign.de> wrote in message
news:dijvjk$o7l$05$1@news.t-online.com...been> Dave Moore schrieb:> > Hi All,
> > I'm putting a website together using PHP and a MySQL database. I'vedevelopment,> > using phpMyAdmin as it makes updating the DB nice and easy. Fornow> > I've been using Apache, MySQL and PHP installed on my local machine butof> > I'm having problems porting to my hoster's server.
> >
> > To transfer the database contents, I've exported the structure and datahost> > my local DB to a .sql file and uploaded this to my hosted DB using
> > phpMyAdmin on the host. This seems to work, but there are two problems:
> >
> > 1). Firstly, the MySQL PASSWORD() command give different results on thelocal> > than it does on my local machine. For example, using phpMyAdmin on mylogin> Your hoster has a newer MySQL version than you have. If you want to use> > machine, typing:
> >
> > SELECT PASSWORD ('mypassword')
> your scripts, replace PASSWORD through OLD_PASSWORD.
>
> See [url]http://dev.mysql.com/doc/refman/5.0/en/password-hashing.html[/url] for
> more information.> >
> > gives a 16 byte number as my books suggest. However, running the same
> > command on the server gives a 41 bytes code!!!. Consequently, all my> Leaving 2 for the others due to lack of knowledge ;)> > functionality does not work!.
> >> hth,> >
> > Thanks for any comments,
> > Dave
> >
> rauch
Dave Moore Guest
-
Axel Schwenke #4
Re: phpMyAdmin MySQL proble,
"Dave Moore" <dave_m_moore@post2me.freeserve.co.uk> wrote:
....> For development,
> I've been using Apache, MySQL and PHP installed on my local machine but now
> I'm having problems porting to my hoster's server.> but there are two problems:
>
> 1). Firstly, the MySQL PASSWORD() command give different results on the host
> than it does on my local machine.....> SELECT PASSWORD ('mypassword')
>
> gives a 16 byte number as my books suggest. However, running the same
> command on the server gives a 41 bytes code!!!. Consequently, all my login
> functionality does not work!.
As Christian said, you hoster uses a newer MySQL version than you. Both> 2). Secondly, I noticed that phpMyAdmin on the host shows a 'Collation'
> column with the value 'latin1_swedish_ci'. This column isn't present when
> using phpMyAdmin on my local machine, even though the DB contents show be
> identical. So what's that all about??.
features were introduced with MySQL 4.1. I suggest you upgrade your
development machine to the latest 4.1 version of MySQL.
Regarding PASSWORD(): the MySQL manual [1] strongly discourages from
using PASSWORD() for your own applications and recommends MD5() or
SHA1() for password hashing.
Regarding character sets and collations: this is great stuff if one
wants to build a multilingual website. For a unilingual application
it's enough to set the defaults for the used tables/databases to the
right values. I suggest reading the manual [2].
[1] [url]http://dev.mysql.com/doc/refman/5.0/en/encryption-functions.html[/url]
[2] [url]http://dev.mysql.com/doc/refman/5.0/en/charset.html[/url]
XL
Axel Schwenke Guest



Reply With Quote

