본문 바로가기

전체 글

(285)
크롬만 인터넷이 안될때 크롬에서만 안되는 경우 chrome://flags -> GPU 사용중지로 변경 후 문제 해결 두번째로는 백신 기능 차단 https://superuser.com/questions/805548/chrome-cant-connect-to-internet-but-other-browsers-can
[fix] could not find driver 해결 PDO와 연결을 시도하는데 이런 오류가 뜬다. 대개 일어나지 않는 오류인데 패키지 안에 php-mysql 모듈이 존재하지 않는다는 뜻이었다. 테스트 기기의 php 버전은 php7.0 이기 때문에 콘솔에서 다음의 명령줄을 입력한다. sudo apt-get install php7.0-mysql
[MySQL] 유저 권한 설정 - grant [MySQL] 유저 권한 설정 - grantMySQL 의 grant 명령어로 사용자 권한 설정사용자 권한 설정mysql> grant all privileges on dbname.table to userid@host identified by 'password'; 모든 db 및 테이블에 접근권한 설정mysql> grant all privileges on *.* to userid@host identified by 'password'; 모든 db 및 테이블에 권한을 주고 로컬 및 리모트에서도 접속가능하도록 설정mysql> grant all privileges on *.* to userid@'%' identified by 'password'; 설정한 권한 적용 (반드시 해야 적용이 된다.)mysql> flush ..
[Mysql] 외부 접속 허용하기, 외부 포트 열기 mysql -u root -p grant all privileges on *.* to '계정명'@'%' identified by '비밀번호'; /etc/mysql/my.cnf 경로를 들어가서 [mysqld]bind-address = 127.0.0.1 위의 bind-address 를 주석처리시켜주거나 기본값 0.0.0.0 (모두 공개) 으로 해야함.
[mysql] Unknown column 'Password' in 'field list' 에 대해 mysql의 root 비밀번호를 변경할 때 update user set password=password('1234') where user='root'; 명령을 입력했는데 ERROR 1054 (42S22): Unknown column 'password' in 'field list' 오류가 발생했다면 user table에 password 필드가 존재하지 않기 때문이다. password 대신 authentication_string필드가 존재할 것이므로 update user set authentication_string=password('1234') where user='root'; 을 이용하면 된다. 링크
[PHP] PC(Desktop), 모바일 구분하기, 체크하기 function isMobile() { return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);}if(isMobile()){ header("Location: http://m.yoursite.com/");}
webkit 브라우저 테마 색상 지정하기 or 변경하기, 크롬 상단 바 색상 바꾸기 모바일 브라우저는 죄다 webkit이니까 적용이 수월하다.
[Mysql] 테이블 초기화, 비우기 테이블의 데이터만 단순하게 모두 삭제하는 것은 auto_increase 속성때문에 idx가 초기화 되지 않는 문제가 있다. idx 컬럼을 삭제하고 다시 만들면 되지만 번거롭다. truncate `Table`; truncate 속성은 말 그대로 테이블을 초기화해주며, 맨 처음 테이블을 만들었던 시점으로 되돌려준다.