Throdne Posted January 1, 2007 Share Posted January 1, 2007 hello, i installed mysql and php and the phpinfo show that i have mysql working but i getting an error when i try to log on in phpmyadmin. i think i have some error in my php.ini [code][SQL]sql.safe_mode = on[ODBC]odbc.default_db = odbc.default_user = odbc.default_pw = [/code]and in [code][MySQL]; Allow or prevent persistent links.mysql.allow_persistent = On; Maximum number of persistent links. -1 means no limit.mysql.max_persistent = -1; Maximum number of links (persistent + non-persistent). -1 means no limit.mysql.max_links = -1; Default port number for mysql_connect(). If unset, mysql_connect() will use; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the; compile-time value defined MYSQL_PORT (in that order). Win32 will only look; at MYSQL_PORT.mysql.default_port = ; Default socket name for local MySQL connects. If empty, uses the built-in; MySQL defaults.mysql.default_socket =; Default host for mysql_connect() (doesn't apply in safe mode).mysql.default_host = ; Default user for mysql_connect() (doesn't apply in safe mode).mysql.default_user = ; Default password for mysql_connect() (doesn't apply in safe mode).; Note that this is generally a *bad* idea to store passwords in this file.; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password"); and reveal this password! And of course, any users with read access to this; file will be able to reveal the password as well.mysql.default_password = ; Maximum time (in seconds) for connect timeout. -1 means no limitmysql.connect_timeout = 60; Trace mode. When trace_mode is active (=On), warnings for table/index scans and; SQL-Errors will be displayed.mysql.trace_mode = Off[/code]if there is something wrong there please help me out. the error im getting in phpmyadmin is [quote]Error#1045 - Access denied for user 'SYSTEM'@'localhost' (using password: NO)[/quote]for temp my user name is root and my pass is network Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 2, 2007 Share Posted January 2, 2007 You need to change phpMyAdmins configuration. Go to where phpMyAdmin is installed to and find the file called config.inc.php open that up for editing and find the following line:[code]$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?[/code]Change 'config' to 'http' instead. Save the config.inc.php file.Now go to phpMyAdmin. You should now get a login window. Enter i the username and password for that username. This will then log you in to MySQL with the username/passwprd you supplied. Quote Link to comment Share on other sites More sharing options...
Throdne Posted January 3, 2007 Author Share Posted January 3, 2007 ok i have not changed it. but i do see a login screen but when i type root a and my password i get an error. plus it is just not phpmyadmin i also have so code a friend gave me and it work from him and i try wordpress and phpbb and i still get an error saying it doesn't work. but with the code i give you above, is it right should i write something in there. shoudl there be something else Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 3, 2007 Share Posted January 3, 2007 No. That is not code but configuration settings. You can change these settings to set restrictions etc. However the default settings are fine. Also could you post the full error message(s) you are getting here please. Quote Link to comment Share on other sites More sharing options...
Throdne Posted January 3, 2007 Author Share Posted January 3, 2007 ok this is a screen of phpmyadmin in firefox. and the error i have.http://blackeyelive.com/pic1.JPGanything you need just ask. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 3, 2007 Share Posted January 3, 2007 WTF! OK try this:Go to Start > Run > cmdType in the following:mysql -u root -ppress enter. Enter the password for the root user and then press enter. Do you get logged in to MySQL now? You now when you get logged in to MySQL as you will get a Welcome to MySQL blah blah blah... message and the C:/Documents and Settings/UserName> changes to mysql>If you get that then type in exit press enter and exit again and press enter. This will log you out of MySQL and close the command window.Ok so MySQL is fine and you can log in via command line. There must something wrong with PHP. Create a new file called test.php and add the following code to it:[code]<?php phpinfo(); ?>[/code]and go to http://locahost/test.phpScroll down to the section headed [b]mysql[/b]. Copy whats after that heading here. Quote Link to comment Share on other sites More sharing options...
Throdne Posted January 3, 2007 Author Share Posted January 3, 2007 ok here it ismysqlMySQL Support enabledActive Persistent Links 0Active Links 0Client API version 5.0.22Directive Local Value Master Valuemysql.allow_persistent On Onmysql.connect_timeout 60 60mysql.default_host no value no valuemysql.default_password no value no valuemysql.default_port no value no valuemysql.default_socket no value no valuemysql.default_user no value no valuemysql.max_links Unlimited Unlimitedmysql.max_persistent Unlimited Unlimitedmysql.trace_mode Off Off Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 4, 2007 Share Posted January 4, 2007 Did you login to MySQL via the command line okay? PHPs configuration is fine. I just dont get why it is trying to connect to MySQL with the username SYSTEM! Quote Link to comment Share on other sites More sharing options...
Throdne Posted January 5, 2007 Author Share Posted January 5, 2007 yeah i did the run and mysql thing and i log in root and i don't know why is doing that too what about my config file for phpmyadmin whould that have something to do with it. wait it also doing the same with some home made code.Could not connect: Access denied for user 'SYSTEM'@'localhost' (using password: NO)Check your config file or contact your server support team.well what about my php.ini go to this site to download my ini file http://blackeyelive.com/php.ini i have a banner on my free host site so the stuff before the [code=php:0] is the banner code. if there is something wrong in there please help me out. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted January 5, 2007 Share Posted January 5, 2007 Your php.ini is fine. I don't know what to suggest sorry. Could you post the code that you use to connect to MySQL here. Quote Link to comment Share on other sites More sharing options...
Throdne Posted January 5, 2007 Author Share Posted January 5, 2007 well, i don't have the time to post it but it is doing the samething as phpmyadmin, same code error Quote Link to comment Share on other sites More sharing options...
weknowtheworld Posted January 6, 2007 Share Posted January 6, 2007 Might be wrong in mysql query code. Please write the code here so we can correct it out.. Quote Link to comment Share on other sites More sharing options...
Throdne Posted January 9, 2007 Author Share Posted January 9, 2007 well i think what you are asking for is the my.ini in the mysql file right? well here it is[code]# MySQL Server Instance Configuration File# ----------------------------------------------------------------------# Generated by the MySQL Server Instance Configuration Wizard### Installation Instructions# ----------------------------------------------------------------------## On Linux you can copy this file to /etc/my.cnf to set global options,# mysql-data-dir/my.cnf to set server-specific options# (@localstatedir@ for this installation) or to# ~/.my.cnf to set user-specific options.## On Windows you should keep this file in the installation directory # of your server (e.g. C:\Program Files\MySQL\MySQL Server X.Y). To# make sure the server reads the config file use the startup option # "--defaults-file". ## To run run the server from the command line, execute this in a # command line shell, e.g.# mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"## To install the server as a Windows service manually, execute this in a # command line shell, e.g.# mysqld --install MySQLXY --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"## And then execute this in a command line shell to start the server, e.g.# net start MySQLXY### Guildlines for editing this file# ----------------------------------------------------------------------## In this file, you can use all long options that the program supports.# If you want to know the options a program supports, start the program# with the "--help" option.## More detailed information about the individual options can also be# found in the manual.### CLIENT SECTION# ----------------------------------------------------------------------## The following options will be read by MySQL client applications.# Note that only client applications shipped by MySQL are guaranteed# to read this section. If you want your own MySQL client program to# honor these values, you need to specify it as an option during the# MySQL client library initialization.#[client]port=3306[mysql]default-character-set=latin1# SERVER SECTION# ----------------------------------------------------------------------## The following options will be read by the MySQL Server. Make sure that# you have installed the server correctly (see above) so it reads this # file.#[mysqld]# The TCP/IP Port the MySQL Server will listen onport=3306#Path to installation directory. All paths are usually resolved relative to this.basedir="C:/Program Files/MySQL/MySQL Server 4.1/"#Path to the database rootdatadir="C:/Program Files/MySQL/MySQL Server 4.1/Data/"# The default character set that will be used when a new schema or table is# created and no character set is defineddefault-character-set=latin1# The default storage engine that will be used when create new tables whendefault-storage-engine=INNODB# The maximum amount of concurrent sessions the MySQL server will# allow. One of these connections will be reserved for a user with# SUPER privileges to allow the administrator to login even if the# connection limit has been reached.max_connections=100# Query cache is used to cache SELECT results and later return them# without actual executing the same query once again. Having the query# cache enabled may result in significant speed improvements, if your# have a lot of identical queries and rarely changing tables. See the# "Qcache_lowmem_prunes" status variable to check if the current value# is high enough for your load.# Note: In case your tables change very often or if your queries are# textually different every time, the query cache may result in a# slowdown instead of a performance improvement.query_cache_size=0# The number of open tables for all threads. Increasing this value# increases the number of file descriptors that mysqld requires.# Therefore you have to make sure to set the amount of open files# allowed to at least 4096 in the variable "open-files-limit" in# section [mysqld_safe]table_cache=256# Maximum size for internal (in-memory) temporary tables. If a table# grows larger than this value, it is automatically converted to disk# based table This limitation is for a single table. There can be many# of them.tmp_table_size=9M# How many threads we should keep in a cache for reuse. When a client# disconnects, the client's threads are put in the cache if there aren't# more than thread_cache_size threads from before. This greatly reduces# the amount of thread creations needed if you have a lot of new# connections. (Normally this doesn't give a notable performance# improvement if you have a good thread implementation.)thread_cache_size=8#*** MyISAM Specific options# The maximum size of the temporary file MySQL is allowed to use while# recreating the index (during REPAIR, ALTER TABLE or LOAD DATA INFILE.# If the file-size would be bigger than this, the index will be created# through the key cache (which is slower).myisam_max_sort_file_size=100G# If the temporary file used for fast index creation would be bigger# than using the key cache by the amount specified here, then prefer the# key cache method. This is mainly used to force long character keys in# large tables to use the slower key cache method to create the index.myisam_max_extra_sort_file_size=100G# If the temporary file used for fast index creation would be bigger# than using the key cache by the amount specified here, then prefer the# key cache method. This is mainly used to force long character keys in# large tables to use the slower key cache method to create the index.myisam_sort_buffer_size=18M# Size of the Key Buffer, used to cache index blocks for MyISAM tables.# Do not set it larger than 30% of your available memory, as some memory# is also required by the OS to cache rows. Even if you're not using# MyISAM tables, you should still set it to 8-64M as it will also be# used for internal temporary disk tables.key_buffer_size=11M# Size of the buffer used for doing full table scans of MyISAM tables.# Allocated per thread, if a full scan is needed.read_buffer_size=64Kread_rnd_buffer_size=256K# This buffer is allocated when MySQL needs to rebuild the index in# REPAIR, OPTIMZE, ALTER table statements as well as in LOAD DATA INFILE# into an empty table. It is allocated per thread so be careful with# large settings.sort_buffer_size=256K#*** INNODB Specific options ***# Use this option if you have a MySQL server with InnoDB support enabled# but you do not plan to use it. This will save memory and disk space# and speed up some things.#skip-innodb# Additional memory pool that is used by InnoDB to store metadata# information. If InnoDB requires more memory for this purpose it will# start to allocate it from the OS. As this is fast enough on most# recent operating systems, you normally do not need to change this# value. SHOW INNODB STATUS will display the current amount used.innodb_additional_mem_pool_size=2M# If set to 1, InnoDB will flush (fsync) the transaction logs to the# disk at each commit, which offers full ACID behavior. If you are# willing to compromise this safety, and you are running small# transactions, you may set this to 0 or 2 to reduce disk I/O to the# logs. Value 0 means that the log is only written to the log file and# the log file flushed to disk approximately once per second. Value 2# means the log is written to the log file at each commit, but the log# file is only flushed to disk approximately once per second.innodb_flush_log_at_trx_commit=1# The size of the buffer InnoDB uses for buffering log data. As soon as# it is full, InnoDB will have to flush it to disk. As it is flushed# once per second anyway, it does not make sense to have it very large# (even with long transactions).innodb_log_buffer_size=1M# InnoDB, unlike MyISAM, uses a buffer pool to cache both indexes and# row data. The bigger you set this the less disk I/O is needed to# access data in tables. On a dedicated database server you may set this# parameter up to 80% of the machine physical memory size. Do not set it# too large, though, because competition of the physical memory may# cause paging in the operating system. Note that on 32bit systems you# might be limited to 2-3.5G of user level memory per process, so do not# set it too high.innodb_buffer_pool_size=18M# Size of each log file in a log group. You should set the combined size# of log files to about 25%-100% of your buffer pool size to avoid# unneeded buffer pool flush activity on log file overwrite. However,# note that a larger logfile size will increase the time needed for the# recovery process.innodb_log_file_size=10M# Number of threads allowed inside the InnoDB kernel. The optimal value# depends highly on the application, hardware as well as the OS# scheduler properties. A too high value may lead to thread thrashing.innodb_thread_concurrency=8[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.