PHP 에서 Session 을 MySQL 로 처리시 아래와 같은 에러가 날 경우


PHP Warning: Unknown: Cannot call session save handler in a recursive manner in Unknown on line 0


1. php.ini 의 MemoryLimit 를 256M 이상으로 올린다.

2. MySQL user 의 권한을 확인한다.


user 의 권한에 insert / delete 등이 없을 경우 발생할 수 있음.

'프로그래밍 언어 > php' 카테고리의 다른 글

윈도우에서 php_mailparse 설치시 에러 처리  (0) 2019.01.09
PHP 를 cli 로 cron 돌릴때 시간 차이  (0) 2018.02.01
파일 사이즈 형식 변경  (0) 2017.03.08
memcached 관련  (0) 2016.12.23
mzk - event  (0) 2007.12.15
블로그 이미지

용병

,

https://github.com/RodrigoViolante/my.cnf

'시스템, 서버 > 데이타베이스' 카테고리의 다른 글

ERROR 1449 (HY000): There is no 'root'@'%' registered  (1) 2009.02.03
IFNULL  (0) 2007.11.22
문자 합치기  (0) 2007.11.15
시퀀스 - cache  (0) 2007.04.27
AUTO_INCREMENT 설정  (0) 2007.02.02
블로그 이미지

용병

,
ERROR 1449 (HY000): There is no 'root'@'%' registered

에러 발생시

mysql.user 에 % 로 root 등록 확인

'시스템, 서버 > 데이타베이스' 카테고리의 다른 글

mysql 메모리별 my.cnf  (0) 2016.12.23
IFNULL  (0) 2007.11.22
문자 합치기  (0) 2007.11.15
시퀀스 - cache  (0) 2007.04.27
AUTO_INCREMENT 설정  (0) 2007.02.02
블로그 이미지

용병

,

SELECT IFNULL(COUNT, 0) FROM TABLE;

COUNT 가 NULL 이면 0으로....

'시스템, 서버 > 데이타베이스' 카테고리의 다른 글

mysql 메모리별 my.cnf  (0) 2016.12.23
ERROR 1449 (HY000): There is no 'root'@'%' registered  (1) 2009.02.03
문자 합치기  (0) 2007.11.15
시퀀스 - cache  (0) 2007.04.27
AUTO_INCREMENT 설정  (0) 2007.02.02
블로그 이미지

용병

,

gem install mysql
-----------------------------------------------------------------------------
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
    ERROR: Failed to build gem native extension.

ruby extconf.rb install mysql
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
-----------------------------------------------------------------------------

gem install mysql -- --with-mysql-lib=/usr/local/mysql/lib/mysql/

cd /usr/local/ruby/lib/ruby/gems/1.8/gems/mysql-2.7/
ruby extconf.rb --with-mysql-config=/usr/local/mysql/bin/mysql_config
make
make install
gem install mysql -- --with-mysql-lib=/usr/local/mysql/lib/mysql/

'프로그래밍 언어 > Ruby On Rails' 카테고리의 다른 글

mongrel_rails cluster start or stop  (0) 2007.05.10
gem list 보기  (0) 2007.05.09
ror  (0) 2007.05.09
블로그 이미지

용병

,

auto_increment 값 1000부터 테이블 생성

create table 테이블 (
num int(11) unsigned not null auto_increment primary key
) type=myisam auto_increment=1000;

auto_increment 값 변경

alter table 테이블명 auto_increment=1000;


현재 auto_increment 값 알기

$SQL = "SHOW TABLE STATUS LIKE 'TableName'";


mysql> show table status like "tableName" G
*************************** 1. row ***************************
Name: tablename
Type: MyISAM
Row_format: Dynamic
Rows: 30154
Avg_row_length: 330
Data_length: 9962860
Max_data_length: 4294967295
Index_length: 1963008
Data_free: 0
Auto_increment: 104136
Create_time: 2005-05-31 11:57:59
Update_time: 2006-02-06 22:10:02
Check_time: NULL
Create_options:
Comment:
1 row in set (0.00 sec)

'시스템, 서버 > 데이타베이스' 카테고리의 다른 글

ERROR 1449 (HY000): There is no 'root'@'%' registered  (1) 2009.02.03
IFNULL  (0) 2007.11.22
문자 합치기  (0) 2007.11.15
시퀀스 - cache  (0) 2007.04.27
SQL_CALC_FOUND_ROWS  (0) 2007.01.24
블로그 이미지

용병

,
뭐하는 놈인지는 나중에 정리...

'시스템, 서버 > 데이타베이스' 카테고리의 다른 글

ERROR 1449 (HY000): There is no 'root'@'%' registered  (1) 2009.02.03
IFNULL  (0) 2007.11.22
문자 합치기  (0) 2007.11.15
시퀀스 - cache  (0) 2007.04.27
AUTO_INCREMENT 설정  (0) 2007.02.02
블로그 이미지

용병

,