Jeg har 2 problemer i mysql det første er at jeg ikke kan logge ind på phpmyadmin den siger:
Welcome to phpMyAdmin
Error
MySQL said:
Cannot connect: invalid settings.
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
Og andet problem er at når jeg prøver den der kode fra tutorial 4 siger den:
Koden jeg har lavet ser sådan her ud:Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\Project\index.php on line 8
Access denied for user 'root'@'localhost' (using password: YES)
Kode: Vælg alt
<?php
$server = "localhost";
$brugernavn = "root";
$kode = "Koden jeg har valgt";
$db = "brugere";
mysql_connect($server , $brugernavn , $kode) or die(mysql_error());
echo "Forbundet til mysql server<br/>";
mysql_select_db($db)or die(mysql_error());
echo "Forbundet til databasen";
?>