ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: vic ismakaev <viclists@mail.esoo.ru>
To: community@altlinux.ru
Subject: Re: [Comm] MySQL, NetAcct-MySQL and Netstat 3.03
Date: Mon, 31 Mar 2003 14:07:34 +0500
Message-ID: <200303311507.34968.viclists@mail.esoo.ru> (raw)
In-Reply-To: <20030331122353.4f34420a.leutin@rambler.ru>

31 Март 2003 12:23, Александр Леутин написал:
> * vic ismakaev <viclists@mail.esoo.ru> Mon, 31 Mar 2003 09:27:13 +0500:
> > > Подскажите, пожалуйста, решение.
> > > Пытаюсь настроить MySQL+NetAcct-MySQL+Netstat.
> > > MySQL и NetAcct поставил, модули для php тоже (phpMyAdmin работает).
> > >  Я так понимаю, что php не может обратиться к базе MySQL.
> > > Почему? Как исправить? Я в apache, mysql и php полный чайник.
> >
> > Скорее всего,у Вас не подключен модудь MySQL в /etc/httpd/conf/php.ini
>
> Спасибо, я нашёл, но не успел отписать сюда. Действительно, строка
> extension=mysql.so
> в php.ini была закомментирована. Почему? Ведь
> extension=sockets.so
> раскомментирована? Я думаю, что при установке php-mysql-4.1.2-alt3 она
> должна была раскомментироваться (или я неправ)? Ладно, эту ошибку
> победил. Теперь при обращении http://localhost/netstat/admin.php
> выскакивает
>
> Warning: Supplied argument is not a valid MySQL-Link resource in
> /var/www/html/netstat/admin.php on line 11
>
> Warning: Supplied argument is not a valid MySQL result resource in
> /var/www/html/netstat/admin.php on line 12
>
> На строках 11, 12 и 13 там
> $result = mysql_query($query,$db);
>     if(!$row=mysql_fetch_object($result) OR $row->status != 'admin')
>         { echo "<h3>".$strWrongAuthorization."</h3>"; exit;}
>
MySQLd должен быть запущен .
Должна существовать база netacct,пользователь netacct должен иметь права на 
эту БД и на ее таблицы.
Посмотрите INSTALL.

-- 
С уважением
Виктор В Исмакаев


  parent reply	other threads:[~2003-03-31  9:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-30 10:59 Александр Леутин
2003-03-31  4:27 ` vic ismakaev
2003-03-31  6:23   ` Александр Леутин
2003-03-31  8:14     ` Maxim.Savrilov
2003-04-01  5:22       ` Александр Леутин
2003-04-02  4:58       ` Александр Леутин
2003-03-31  9:07     ` vic ismakaev [this message]
2003-03-31 18:48     ` Pavel Vainerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200303311507.34968.viclists@mail.esoo.ru \
    --to=viclists@mail.esoo.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git